From 08cdab49853b2d0f91f7cc3b445276a4c34df08c Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Fri, 25 Apr 2014 17:48:14 +0200 Subject: [PATCH 01/16] #19 Adding .ruby-version and .ruby-gemset to .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index c5a5504..175b57d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ test/dummy/tmp/ test/dummy/.sass-cache .rvmrc *.gem + +.ruby-gemset +.ruby-version From 7dcbebfcbf13fbd90f5b7df2fd76f3945f3cf2fd Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Fri, 25 Apr 2014 17:48:54 +0200 Subject: [PATCH 02/16] #19 Cleaning up Gems and database.yml for dummy app --- Gemfile | 30 +----------- Gemfile.lock | 83 ++++++++++------------------------ test/dummy/config/database.yml | 43 ++++-------------- translation_center.gemspec | 25 ++++++++-- 4 files changed, 54 insertions(+), 127 deletions(-) diff --git a/Gemfile b/Gemfile index fb83370..e397074 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ source "http://rubygems.org" ###########################IMPORTANT################################ #################################################################### #################################################################### -# When add new gem, don't forget to add it to +# When add new gem, don't forget to add it to # 1- engine.rb # 2- translation_center.gemspec #################################################################### @@ -15,30 +15,4 @@ source "http://rubygems.org" # development dependencies will be added by default to the :development group. gemspec -gem 'jquery-rails' -gem 'jquery-ui-rails' -gem 'mysql2' -gem 'haml' -gem 'haml-rails' -gem 'acts_as_votable' -gem 'ya2yaml' -# gem 'linecache19', :git => 'git://github.com/mark-moseley/linecache' -gem 'devise' -gem 'font-awesome-rails' -gem 'audited-activerecord' - -group :development do - gem 'ruby-debug-base19x', '~> 0.11.30.pre4' - gem 'ruby-debug19' - gem 'debugger' - gem 'better_errors' - gem 'binding_of_caller' -end - -# Declare any dependencies that are still in development here instead of in -# your gemspec. These might include edge Rails or gems from your path or -# Git. Remember to move these dependencies to your gemspec before releasing -# your gem to rubygems.org. - -# To use debugger -# gem 'debugger' +gem 'devise' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index da66a1c..31d228d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,16 +1,16 @@ PATH remote: . specs: - translation_center (1.6.9) + translation_center (1.7.1) acts_as_votable audited-activerecord + devise font-awesome-rails haml haml-rails jquery-rails jquery-ui-rails - meta_search - rails (>= 3.1.0) + rails (>= 3.1.0, <= 3.2.12) ya2yaml GEM @@ -43,10 +43,8 @@ GEM activesupport (3.2.12) i18n (~> 0.6) multi_json (~> 1.0) - acts_as_votable (0.5.0) - rails (>= 3.0.0) - archive-tar-minitar (0.5.2) - arel (3.0.2) + acts_as_votable (0.8.0) + arel (3.0.3) audited (3.0.0) audited-activerecord (3.0.0) activerecord (~> 3.0) @@ -59,15 +57,14 @@ GEM debug_inspector (>= 0.0.1) builder (3.0.4) coderay (1.0.9) - columnize (0.3.6) + columnize (0.8.9) debug_inspector (0.0.2) - debugger (1.3.3) + debugger (1.6.6) columnize (>= 0.3.1) - debugger-linecache (~> 1.1.1) - debugger-ruby_core_source (~> 1.2.0) - debugger-linecache (1.1.2) - debugger-ruby_core_source (>= 1.1.1) - debugger-ruby_core_source (1.2.0) + debugger-linecache (~> 1.2.0) + debugger-ruby_core_source (~> 1.3.2) + debugger-linecache (1.2.0) + debugger-ruby_core_source (1.3.2) devise (2.2.3) bcrypt-ruby (~> 3.0) orm_adapter (~> 0.1) @@ -83,8 +80,8 @@ GEM activesupport (>= 3.1, < 4.1) haml (>= 3.1, < 4.1) railties (>= 3.1, < 4.1) - hike (1.2.1) - i18n (0.6.2) + hike (1.2.3) + i18n (0.6.9) journey (1.0.4) jquery-rails (2.2.1) railties (>= 3.0, < 5.0) @@ -93,24 +90,14 @@ GEM jquery-rails railties (>= 3.1.0) json (1.7.7) - linecache19 (0.5.12) - ruby_core_source (>= 0.1.4) mail (2.4.4) i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) - meta_search (1.1.3) - actionpack (~> 3.1) - activerecord (~> 3.1) - activesupport (~> 3.1) - polyamorous (~> 0.5.0) - mime-types (1.21) - multi_json (1.6.1) - mysql2 (0.3.11) + mime-types (1.25.1) + multi_json (1.9.2) orm_adapter (0.4.0) - polyamorous (0.5.0) - activerecord (~> 3.0) - polyglot (0.3.3) + polyglot (0.3.4) rack (1.4.5) rack-cache (1.2) rack (>= 0.4) @@ -133,35 +120,21 @@ GEM rake (>= 0.8.7) rdoc (~> 3.4) thor (>= 0.14.6, < 2.0) - rake (10.0.3) + rake (10.3.1) rdoc (3.12.2) json (~> 1.4) - ruby-debug-base19 (0.11.25) - columnize (>= 0.3.1) - linecache19 (>= 0.5.11) - ruby_core_source (>= 0.1.4) - ruby-debug-base19x (0.11.30.pre10) - columnize (>= 0.3.1) - linecache19 (>= 0.5.11) - rake (>= 0.8.1) - ruby_core_source (>= 0.1.4) - ruby-debug19 (0.11.6) - columnize (>= 0.3.1) - linecache19 (>= 0.5.11) - ruby-debug-base19 (>= 0.11.19) - ruby_core_source (0.1.5) - archive-tar-minitar (>= 0.5.2) sprockets (2.2.2) hike (~> 1.2) multi_json (~> 1.0) rack (~> 1.0) tilt (~> 1.1, != 1.3.0) + sqlite3 (1.3.9) thor (0.17.0) - tilt (1.3.3) - treetop (1.4.12) + tilt (1.4.1) + treetop (1.4.15) polyglot polyglot (>= 0.3.1) - tzinfo (0.3.35) + tzinfo (0.3.39) warden (1.2.1) rack (>= 1.0) ya2yaml (0.31) @@ -170,19 +143,9 @@ PLATFORMS ruby DEPENDENCIES - acts_as_votable - audited-activerecord better_errors binding_of_caller - debugger + debugger (~> 1.6.5) devise - font-awesome-rails - haml - haml-rails - jquery-rails - jquery-ui-rails - mysql2 - ruby-debug-base19x (~> 0.11.30.pre4) - ruby-debug19 + sqlite3 translation_center! - ya2yaml diff --git a/test/dummy/config/database.yml b/test/dummy/config/database.yml index 135eccf..b2c07e2 100644 --- a/test/dummy/config/database.yml +++ b/test/dummy/config/database.yml @@ -1,42 +1,17 @@ -# MySQL. Versions 4.1 and 5.0 are recommended. -# -# Install the MYSQL driver -# gem install mysql2 -# -# Ensure the MySQL gem is defined in your Gemfile -# gem 'mysql2' -# -# And be sure to use new-style password hashing: -# http://dev.mysql.com/doc/refman/5.0/en/old-client.html development: - adapter: mysql2 - encoding: utf8 - reconnect: false - database: translation_center_dev + adapter: sqlite3 + database: db/development.sqlite3 pool: 5 - username: root - password: "1234" - socket: /var/run/mysqld/mysqld.sock + timeout: 5000 -# Warning: The database defined as "test" will be erased and -# re-generated from your development database when you run "rake". -# Do not set this db to the same as development or production. test: - adapter: mysql2 - encoding: utf8 - reconnect: false - database: translation_center_test + adapter: sqlite3 + database: db/test.sqlite3 pool: 5 - username: root - password: "1234" - socket: /var/run/mysqld/mysqld.sock + timeout: 5000 production: - adapter: mysql2 - encoding: utf8 - reconnect: false - database: translation_center_pro + adapter: sqlite3 + database: db/production.sqlite3 pool: 5 - username: root - password: - socket: /var/run/mysqld/mysqld.sock + timeout: 5000 \ No newline at end of file diff --git a/translation_center.gemspec b/translation_center.gemspec index 90e10f9..7eb53bf 100644 --- a/translation_center.gemspec +++ b/translation_center.gemspec @@ -17,14 +17,29 @@ Gem::Specification.new do |s| s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"] s.test_files = Dir["test/**/*"] - s.add_dependency "rails", ">= 3.1.0", "<= 3.2.12" - s.add_dependency "jquery-rails" - s.add_dependency 'haml' - s.add_dependency 'haml-rails' + + # Development dependencies + s.add_development_dependency 'sqlite3' + + s.add_development_dependency 'debugger', '~> 1.6.5' + s.add_development_dependency 'better_errors' + s.add_development_dependency 'binding_of_caller' + + # Dependencies + s.add_dependency 'rails', '>= 3.1.0', '<= 3.2.12' + s.add_dependency 'acts_as_votable' + s.add_dependency 'ya2yaml' - s.add_dependency 'font-awesome-rails' + + s.add_dependency 'devise' + s.add_dependency 'audited-activerecord' + + s.add_dependency 'jquery-rails' s.add_dependency 'jquery-ui-rails' + s.add_dependency 'font-awesome-rails' + s.add_dependency 'haml' + s.add_dependency 'haml-rails' end From 47ff5f5e6220d3e8a3047ce4a1287bd6c29ef33c Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Mon, 28 Apr 2014 11:49:55 +0200 Subject: [PATCH 03/16] #19 Moving from unit tests to rspec tests --- .gitignore | 12 +- test/dummy/.rspec => .rspec | 0 Gemfile.lock | 22 ++ Rakefile | 21 +- app/models/translation_center/translation.rb | 6 +- lib/translation_center/engine.rb | 7 + {test => spec}/dummy/README.rdoc | 0 {test => spec}/dummy/Rakefile | 0 .../app/assets/javascripts/application.js | 1 - .../app/assets/stylesheets/application.css | 1 - .../app/controllers/application_controller.rb | 3 + .../dummy/app/helpers/application_helper.rb | 0 {test => spec}/dummy/app/mailers/.gitkeep | 0 {test => spec}/dummy/app/models/.gitkeep | 0 {test => spec}/dummy/app/models/user.rb | 7 +- .../app/views/layouts/application.html.erb | 1 - {test => spec}/dummy/config.ru | 0 {test => spec}/dummy/config/application.rb | 9 +- {test => spec}/dummy/config/boot.rb | 0 spec/dummy/config/database.yml | 25 ++ {test => spec}/dummy/config/environment.rb | 0 .../dummy/config/environments/development.rb | 4 +- .../dummy/config/environments/production.rb | 0 .../dummy/config/environments/test.rb | 0 .../initializers/backtrace_silencers.rb | 0 .../dummy/config/initializers/devise.rb | 2 +- .../dummy/config/initializers/inflections.rb | 0 .../dummy/config/initializers/mime_types.rb | 0 .../dummy/config/initializers/secret_token.rb | 2 +- .../config/initializers/session_store.rb | 2 +- .../config/initializers/wrap_parameters.rb | 2 +- .../dummy/config/locales/devise.en.yml | 0 spec/dummy/config/locales/en.yml | 5 + spec/dummy/config/routes.rb | 7 + spec/dummy/db/development.sqlite3 | Bin 0 -> 20480 bytes .../20140428094433_devise_create_users.rb | 0 .../.gitkeep => spec/dummy/db/test.sqlite3 | 0 .../log => spec/dummy/lib/assets}/.gitkeep | 0 .../favicon.ico => spec/dummy/log/.gitkeep | 0 spec/dummy/log/test.log | 1 + {test => spec}/dummy/public/404.html | 0 {test => spec}/dummy/public/422.html | 0 {test => spec}/dummy/public/500.html | 0 spec/dummy/public/favicon.ico | 0 {test => spec}/dummy/script/rails | 0 .../translation_center/translation_spec.rb | 7 + {test/dummy/spec => spec}/spec_helper.rb | 32 +- .../assets/images/translation_center_logo.png | Bin 1950 -> 0 bytes test/dummy/app/assets/javascripts/articles.js | 2 - .../dummy/app/assets/stylesheets/articles.css | 4 - .../dummy/app/assets/stylesheets/scaffold.css | 56 --- .../app/controllers/application_controller.rb | 6 - .../app/controllers/articles_controller.rb | 85 ----- test/dummy/app/helpers/articles_helper.rb | 2 - test/dummy/app/models/article.rb | 7 - test/dummy/app/views/articles/_form.html.haml | 16 - test/dummy/app/views/articles/edit.html.haml | 7 - test/dummy/app/views/articles/index.html.haml | 32 -- test/dummy/app/views/articles/new.html.haml | 5 - test/dummy/app/views/articles/show.html.haml | 14 - test/dummy/config/database.yml | 17 - test/dummy/config/locales/ar.yml | 6 - test/dummy/config/locales/de.yml | 2 - test/dummy/config/locales/en.yml | 361 ------------------ test/dummy/config/routes.rb | 10 - test/dummy/config/translation_center.yml | 58 --- .../migrate/20130410082701_create_articles.rb | 10 - ...92_create_translation_center_categories.rb | 9 - ...ate_translation_center_translation_keys.rb | 14 - ..._create_translation_center_translations.rb | 13 - .../20130410084711235602_install_audited.rb | 28 -- ...0130410084711_acts_as_votable_migration.rb | 23 -- ...tus_translation_center_translation_keys.rb | 5 - ...tus_translation_center_translation_keys.rb | 5 - ...506103956_fix_translation_user_relation.rb | 12 - .../db/migrate/20130801102022_add_indicies.rb | 8 - test/dummy/db/schema.rb | 110 ------ test/dummy/test/fixtures/articles.yml | 9 - test/dummy/test/fixtures/posts.yml | 9 - test/dummy/test/fixtures/users.yml | 11 - .../functional/articles_controller_test.rb | 49 --- .../test/functional/posts_controller_test.rb | 49 --- test/dummy/test/unit/article_test.rb | 7 - .../test/unit/helpers/articles_helper_test.rb | 4 - .../test/unit/helpers/posts_helper_test.rb | 4 - test/dummy/test/unit/post_test.rb | 7 - test/dummy/test/unit/user_test.rb | 7 - .../translation_center/categories.yml | 7 - .../translation_center/translation_keys.yml | 11 - .../translation_center/translations.yml | 15 - .../categories_controller_test.rb | 51 --- .../center_controller_test.rb | 9 - .../translation_keys_controller_test.rb | 51 --- .../translations_controller_test.rb | 51 --- test/integration/navigation_test.rb | 10 - test/test_helper.rb | 15 - test/translation_center_test.rb | 7 - .../categories_helper_test.rb | 6 - .../translation_center/center_helper_test.rb | 6 - .../translation_keys_helper_test.rb | 6 - .../translations_helper_test.rb | 6 - test/unit/translation_center/category_test.rb | 9 - .../translation_key_test.rb | 9 - .../translation_center/translation_test.rb | 9 - translation_center.gemspec | 6 +- 105 files changed, 133 insertions(+), 1413 deletions(-) rename test/dummy/.rspec => .rspec (100%) rename {test => spec}/dummy/README.rdoc (100%) rename {test => spec}/dummy/Rakefile (100%) rename {test => spec}/dummy/app/assets/javascripts/application.js (93%) rename {test => spec}/dummy/app/assets/stylesheets/application.css (93%) create mode 100644 spec/dummy/app/controllers/application_controller.rb rename {test => spec}/dummy/app/helpers/application_helper.rb (100%) rename {test => spec}/dummy/app/mailers/.gitkeep (100%) rename {test => spec}/dummy/app/models/.gitkeep (100%) rename {test => spec}/dummy/app/models/user.rb (83%) rename {test => spec}/dummy/app/views/layouts/application.html.erb (75%) rename {test => spec}/dummy/config.ru (100%) rename {test => spec}/dummy/config/application.rb (91%) rename {test => spec}/dummy/config/boot.rb (100%) create mode 100644 spec/dummy/config/database.yml rename {test => spec}/dummy/config/environment.rb (100%) rename {test => spec}/dummy/config/environments/development.rb (90%) rename {test => spec}/dummy/config/environments/production.rb (100%) rename {test => spec}/dummy/config/environments/test.rb (100%) rename {test => spec}/dummy/config/initializers/backtrace_silencers.rb (100%) rename {test => spec}/dummy/config/initializers/devise.rb (98%) rename {test => spec}/dummy/config/initializers/inflections.rb (100%) rename {test => spec}/dummy/config/initializers/mime_types.rb (100%) rename {test => spec}/dummy/config/initializers/secret_token.rb (65%) rename {test => spec}/dummy/config/initializers/session_store.rb (80%) rename {test => spec}/dummy/config/initializers/wrap_parameters.rb (92%) rename {test => spec}/dummy/config/locales/devise.en.yml (100%) create mode 100644 spec/dummy/config/locales/en.yml create mode 100644 spec/dummy/config/routes.rb create mode 100644 spec/dummy/db/development.sqlite3 rename test/dummy/db/migrate/20130410082611_devise_create_users.rb => spec/dummy/db/migrate/20140428094433_devise_create_users.rb (100%) rename test/dummy/lib/assets/.gitkeep => spec/dummy/db/test.sqlite3 (100%) rename {test/dummy/log => spec/dummy/lib/assets}/.gitkeep (100%) rename test/dummy/public/favicon.ico => spec/dummy/log/.gitkeep (100%) create mode 100644 spec/dummy/log/test.log rename {test => spec}/dummy/public/404.html (100%) rename {test => spec}/dummy/public/422.html (100%) rename {test => spec}/dummy/public/500.html (100%) create mode 100644 spec/dummy/public/favicon.ico rename {test => spec}/dummy/script/rails (100%) create mode 100644 spec/models/translation_center/translation_spec.rb rename {test/dummy/spec => spec}/spec_helper.rb (65%) delete mode 100644 test/dummy/app/assets/images/translation_center_logo.png delete mode 100644 test/dummy/app/assets/javascripts/articles.js delete mode 100644 test/dummy/app/assets/stylesheets/articles.css delete mode 100644 test/dummy/app/assets/stylesheets/scaffold.css delete mode 100644 test/dummy/app/controllers/application_controller.rb delete mode 100644 test/dummy/app/controllers/articles_controller.rb delete mode 100644 test/dummy/app/helpers/articles_helper.rb delete mode 100644 test/dummy/app/models/article.rb delete mode 100644 test/dummy/app/views/articles/_form.html.haml delete mode 100644 test/dummy/app/views/articles/edit.html.haml delete mode 100644 test/dummy/app/views/articles/index.html.haml delete mode 100644 test/dummy/app/views/articles/new.html.haml delete mode 100644 test/dummy/app/views/articles/show.html.haml delete mode 100644 test/dummy/config/database.yml delete mode 100644 test/dummy/config/locales/ar.yml delete mode 100644 test/dummy/config/locales/de.yml delete mode 100644 test/dummy/config/locales/en.yml delete mode 100644 test/dummy/config/routes.rb delete mode 100644 test/dummy/config/translation_center.yml delete mode 100644 test/dummy/db/migrate/20130410082701_create_articles.rb delete mode 100644 test/dummy/db/migrate/20130410084711234392_create_translation_center_categories.rb delete mode 100644 test/dummy/db/migrate/20130410084711235054_create_translation_center_translation_keys.rb delete mode 100644 test/dummy/db/migrate/20130410084711235601_create_translation_center_translations.rb delete mode 100644 test/dummy/db/migrate/20130410084711235602_install_audited.rb delete mode 100644 test/dummy/db/migrate/20130410084711_acts_as_votable_migration.rb delete mode 100644 test/dummy/db/migrate/20130410113111070575_add_de_status_translation_center_translation_keys.rb delete mode 100644 test/dummy/db/migrate/20130417134539377014_add_ar_status_translation_center_translation_keys.rb delete mode 100644 test/dummy/db/migrate/20130506103956_fix_translation_user_relation.rb delete mode 100644 test/dummy/db/migrate/20130801102022_add_indicies.rb delete mode 100644 test/dummy/db/schema.rb delete mode 100644 test/dummy/test/fixtures/articles.yml delete mode 100644 test/dummy/test/fixtures/posts.yml delete mode 100644 test/dummy/test/fixtures/users.yml delete mode 100644 test/dummy/test/functional/articles_controller_test.rb delete mode 100644 test/dummy/test/functional/posts_controller_test.rb delete mode 100644 test/dummy/test/unit/article_test.rb delete mode 100644 test/dummy/test/unit/helpers/articles_helper_test.rb delete mode 100644 test/dummy/test/unit/helpers/posts_helper_test.rb delete mode 100644 test/dummy/test/unit/post_test.rb delete mode 100644 test/dummy/test/unit/user_test.rb delete mode 100644 test/fixtures/translation_center/categories.yml delete mode 100644 test/fixtures/translation_center/translation_keys.yml delete mode 100644 test/fixtures/translation_center/translations.yml delete mode 100644 test/functional/translation_center/categories_controller_test.rb delete mode 100644 test/functional/translation_center/center_controller_test.rb delete mode 100644 test/functional/translation_center/translation_keys_controller_test.rb delete mode 100644 test/functional/translation_center/translations_controller_test.rb delete mode 100644 test/integration/navigation_test.rb delete mode 100644 test/test_helper.rb delete mode 100644 test/translation_center_test.rb delete mode 100644 test/unit/helpers/translation_center/categories_helper_test.rb delete mode 100644 test/unit/helpers/translation_center/center_helper_test.rb delete mode 100644 test/unit/helpers/translation_center/translation_keys_helper_test.rb delete mode 100644 test/unit/helpers/translation_center/translations_helper_test.rb delete mode 100644 test/unit/translation_center/category_test.rb delete mode 100644 test/unit/translation_center/translation_key_test.rb delete mode 100644 test/unit/translation_center/translation_test.rb diff --git a/.gitignore b/.gitignore index 175b57d..6b113cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,14 @@ .bundle/ + log/*.log + pkg/ -test/dummy/db/*.sqlite3 -test/dummy/log/*.log -test/dummy/tmp/ -test/dummy/.sass-cache + +spec/dummy/db/*.sqlite3 +spec/dummy/log/*.log +spec/dummy/tmp/ +spec/dummy/.sass-cache + .rvmrc *.gem diff --git a/test/dummy/.rspec b/.rspec similarity index 100% rename from test/dummy/.rspec rename to .rspec diff --git a/Gemfile.lock b/Gemfile.lock index 31d228d..c609367 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -58,6 +58,7 @@ GEM builder (3.0.4) coderay (1.0.9) columnize (0.8.9) + database_cleaner (1.2.0) debug_inspector (0.0.2) debugger (1.6.6) columnize (>= 0.3.1) @@ -70,7 +71,13 @@ GEM orm_adapter (~> 0.1) railties (~> 3.1) warden (~> 1.2.1) + diff-lcs (1.2.5) erubis (2.7.0) + factory_girl (4.4.0) + activesupport (>= 3.0.0) + factory_girl_rails (4.4.1) + factory_girl (~> 4.4.0) + railties (>= 3.0.0) font-awesome-rails (3.0.2.0) railties (>= 3.1) haml (4.0.0) @@ -123,6 +130,18 @@ GEM rake (10.3.1) rdoc (3.12.2) json (~> 1.4) + rspec-core (2.14.8) + rspec-expectations (2.14.5) + diff-lcs (>= 1.1.3, < 2.0) + rspec-mocks (2.14.6) + rspec-rails (2.14.2) + actionpack (>= 3.0) + activemodel (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 2.14.0) + rspec-expectations (~> 2.14.0) + rspec-mocks (~> 2.14.0) sprockets (2.2.2) hike (~> 1.2) multi_json (~> 1.0) @@ -145,7 +164,10 @@ PLATFORMS DEPENDENCIES better_errors binding_of_caller + database_cleaner debugger (~> 1.6.5) devise + factory_girl_rails + rspec-rails sqlite3 translation_center! diff --git a/Rakefile b/Rakefile index b422748..8044a4d 100644 --- a/Rakefile +++ b/Rakefile @@ -12,6 +12,7 @@ rescue LoadError RDoc::Task = Rake::RDocTask end +desc 'Generating documentation' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'TranslationCenter' @@ -20,21 +21,15 @@ RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_files.include('lib/**/*.rb') end -APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__) +APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) load 'rails/tasks/engine.rake' - - Bundler::GemHelper.install_tasks +Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each {|f| load f } -require 'rake/testtask' - -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' - t.libs << 'test' - t.pattern = 'test/**/*_test.rb' - t.verbose = false -end - +desc 'RSpec tests' +require 'rspec/core' +require 'rspec/core/rake_task' -task :default => :test +RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare') +task :default => :spec \ No newline at end of file diff --git a/app/models/translation_center/translation.rb b/app/models/translation_center/translation.rb index 424e054..c9fc8f6 100644 --- a/app/models/translation_center/translation.rb +++ b/app/models/translation_center/translation.rb @@ -20,10 +20,10 @@ class Translation < ActiveRecord::Base validate :one_translation_per_lang_per_key, on: :create # returns accepted transations - scope :accepted, where(status: 'accepted') + scope :accepted, -> { where(status: 'accepted') } # returns translations in a certain language - scope :in, lambda { |lang| where(lang: lang.to_s.strip) } + scope :in, ->(lang) { where(lang: lang.to_s.strip) } # sorts translations by number of votes scope :sorted_by_votes, where('votable_type IS NULL OR votable_type = ?', 'TranslationCenter::Translation').select('translation_center_translations.*, count(votes.id) as votes_count').joins('LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id').group('translation_center_translations.id').order('votes_count desc') @@ -62,7 +62,7 @@ def accept self.translation_key.reload self.update_attribute(:status, 'accepted') end - + end # unaccept a translation diff --git a/lib/translation_center/engine.rb b/lib/translation_center/engine.rb index ed391fa..c6c1196 100644 --- a/lib/translation_center/engine.rb +++ b/lib/translation_center/engine.rb @@ -11,5 +11,12 @@ module TranslationCenter class Engine < ::Rails::Engine isolate_namespace TranslationCenter + + config.generators do |g| + g.test_framework :rspec, :fixture => false + g.fixture_replacement :factory_girl, :dir => 'spec/factories' + g.assets false + g.helper false + end end end diff --git a/test/dummy/README.rdoc b/spec/dummy/README.rdoc similarity index 100% rename from test/dummy/README.rdoc rename to spec/dummy/README.rdoc diff --git a/test/dummy/Rakefile b/spec/dummy/Rakefile similarity index 100% rename from test/dummy/Rakefile rename to spec/dummy/Rakefile diff --git a/test/dummy/app/assets/javascripts/application.js b/spec/dummy/app/assets/javascripts/application.js similarity index 93% rename from test/dummy/app/assets/javascripts/application.js rename to spec/dummy/app/assets/javascripts/application.js index 11464f4..9097d83 100644 --- a/test/dummy/app/assets/javascripts/application.js +++ b/spec/dummy/app/assets/javascripts/application.js @@ -13,4 +13,3 @@ //= require jquery //= require jquery_ujs //= require_tree . -//= require translation_center/inspector diff --git a/test/dummy/app/assets/stylesheets/application.css b/spec/dummy/app/assets/stylesheets/application.css similarity index 93% rename from test/dummy/app/assets/stylesheets/application.css rename to spec/dummy/app/assets/stylesheets/application.css index 10295cc..3192ec8 100644 --- a/test/dummy/app/assets/stylesheets/application.css +++ b/spec/dummy/app/assets/stylesheets/application.css @@ -10,5 +10,4 @@ * *= require_self *= require_tree . - *= require translation_center/inspector */ diff --git a/spec/dummy/app/controllers/application_controller.rb b/spec/dummy/app/controllers/application_controller.rb new file mode 100644 index 0000000..e8065d9 --- /dev/null +++ b/spec/dummy/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery +end diff --git a/test/dummy/app/helpers/application_helper.rb b/spec/dummy/app/helpers/application_helper.rb similarity index 100% rename from test/dummy/app/helpers/application_helper.rb rename to spec/dummy/app/helpers/application_helper.rb diff --git a/test/dummy/app/mailers/.gitkeep b/spec/dummy/app/mailers/.gitkeep similarity index 100% rename from test/dummy/app/mailers/.gitkeep rename to spec/dummy/app/mailers/.gitkeep diff --git a/test/dummy/app/models/.gitkeep b/spec/dummy/app/models/.gitkeep similarity index 100% rename from test/dummy/app/models/.gitkeep rename to spec/dummy/app/models/.gitkeep diff --git a/test/dummy/app/models/user.rb b/spec/dummy/app/models/user.rb similarity index 83% rename from test/dummy/app/models/user.rb rename to spec/dummy/app/models/user.rb index e76ec8f..02543cc 100644 --- a/test/dummy/app/models/user.rb +++ b/spec/dummy/app/models/user.rb @@ -7,10 +7,5 @@ class User < ActiveRecord::Base # Setup accessible (or protected) attributes for your model attr_accessible :email, :password, :password_confirmation, :remember_me - - acts_as_translator - - def can_admin_translations? - self.id == User.first.id - end + # attr_accessible :title, :body end diff --git a/test/dummy/app/views/layouts/application.html.erb b/spec/dummy/app/views/layouts/application.html.erb similarity index 75% rename from test/dummy/app/views/layouts/application.html.erb rename to spec/dummy/app/views/layouts/application.html.erb index 960926e..4cab268 100644 --- a/test/dummy/app/views/layouts/application.html.erb +++ b/spec/dummy/app/views/layouts/application.html.erb @@ -7,7 +7,6 @@ <%= csrf_meta_tags %> - <%= link_to('Logout', destroy_user_session_path, :method => :delete) %> <%= yield %> diff --git a/test/dummy/config.ru b/spec/dummy/config.ru similarity index 100% rename from test/dummy/config.ru rename to spec/dummy/config.ru diff --git a/test/dummy/config/application.rb b/spec/dummy/config/application.rb similarity index 91% rename from test/dummy/config/application.rb rename to spec/dummy/config/application.rb index ab4c122..2ec3744 100644 --- a/test/dummy/config/application.rb +++ b/spec/dummy/config/application.rb @@ -1,13 +1,18 @@ require File.expand_path('../boot', __FILE__) -require 'rails/all' +# Pick the frameworks you want: +require "active_record/railtie" +require "action_controller/railtie" +require "action_mailer/railtie" +require "active_resource/railtie" +require "sprockets/railtie" +# require "rails/test_unit/railtie" Bundler.require require "translation_center" module Dummy class Application < Rails::Application - # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. diff --git a/test/dummy/config/boot.rb b/spec/dummy/config/boot.rb similarity index 100% rename from test/dummy/config/boot.rb rename to spec/dummy/config/boot.rb diff --git a/spec/dummy/config/database.yml b/spec/dummy/config/database.yml new file mode 100644 index 0000000..51a4dd4 --- /dev/null +++ b/spec/dummy/config/database.yml @@ -0,0 +1,25 @@ +# SQLite version 3.x +# gem install sqlite3 +# +# Ensure the SQLite 3 gem is defined in your Gemfile +# gem 'sqlite3' +development: + adapter: sqlite3 + database: db/development.sqlite3 + pool: 5 + timeout: 5000 + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + adapter: sqlite3 + database: db/test.sqlite3 + pool: 5 + timeout: 5000 + +production: + adapter: sqlite3 + database: db/production.sqlite3 + pool: 5 + timeout: 5000 diff --git a/test/dummy/config/environment.rb b/spec/dummy/config/environment.rb similarity index 100% rename from test/dummy/config/environment.rb rename to spec/dummy/config/environment.rb diff --git a/test/dummy/config/environments/development.rb b/spec/dummy/config/environments/development.rb similarity index 90% rename from test/dummy/config/environments/development.rb rename to spec/dummy/config/environments/development.rb index 50105b3..82c74d1 100644 --- a/test/dummy/config/environments/development.rb +++ b/spec/dummy/config/environments/development.rb @@ -23,11 +23,11 @@ config.action_dispatch.best_standards_support = :builtin # Raise exception on mass assignment protection for Active Record models - # config.active_record.mass_assignment_sanitizer = :strict + config.active_record.mass_assignment_sanitizer = :strict # Log the query plan for queries taking more than this (works # with SQLite, MySQL, and PostgreSQL) - # config.active_record.auto_explain_threshold_in_seconds = 0.5 + config.active_record.auto_explain_threshold_in_seconds = 0.5 # Do not compress assets config.assets.compress = false diff --git a/test/dummy/config/environments/production.rb b/spec/dummy/config/environments/production.rb similarity index 100% rename from test/dummy/config/environments/production.rb rename to spec/dummy/config/environments/production.rb diff --git a/test/dummy/config/environments/test.rb b/spec/dummy/config/environments/test.rb similarity index 100% rename from test/dummy/config/environments/test.rb rename to spec/dummy/config/environments/test.rb diff --git a/test/dummy/config/initializers/backtrace_silencers.rb b/spec/dummy/config/initializers/backtrace_silencers.rb similarity index 100% rename from test/dummy/config/initializers/backtrace_silencers.rb rename to spec/dummy/config/initializers/backtrace_silencers.rb diff --git a/test/dummy/config/initializers/devise.rb b/spec/dummy/config/initializers/devise.rb similarity index 98% rename from test/dummy/config/initializers/devise.rb rename to spec/dummy/config/initializers/devise.rb index 966074b..0ff4cbe 100644 --- a/test/dummy/config/initializers/devise.rb +++ b/spec/dummy/config/initializers/devise.rb @@ -82,7 +82,7 @@ config.stretches = Rails.env.test? ? 1 : 10 # Setup a pepper to generate the encrypted password. - # config.pepper = "04916f04c90691d81f589fcb4c6a5b3ab711fc0fb33e1b061b4d0922ecb1feeee72d10bb61537350d8fa35a12513266c8b087714ae65b9e4a8ed9cc5aa56581a" + # config.pepper = "775fa92c427f2a2f3c48e6c52d3d98745acae331fd85a57643a6357da3e2b415857d9516f54ea2906c91f33cb2dfd975a72967b0a1f6a59dac96017a877b4ae8" # ==> Configuration for :confirmable # A period that the user is allowed to access the website even without diff --git a/test/dummy/config/initializers/inflections.rb b/spec/dummy/config/initializers/inflections.rb similarity index 100% rename from test/dummy/config/initializers/inflections.rb rename to spec/dummy/config/initializers/inflections.rb diff --git a/test/dummy/config/initializers/mime_types.rb b/spec/dummy/config/initializers/mime_types.rb similarity index 100% rename from test/dummy/config/initializers/mime_types.rb rename to spec/dummy/config/initializers/mime_types.rb diff --git a/test/dummy/config/initializers/secret_token.rb b/spec/dummy/config/initializers/secret_token.rb similarity index 65% rename from test/dummy/config/initializers/secret_token.rb rename to spec/dummy/config/initializers/secret_token.rb index 4fe9bb7..cece17b 100644 --- a/test/dummy/config/initializers/secret_token.rb +++ b/spec/dummy/config/initializers/secret_token.rb @@ -4,4 +4,4 @@ # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. -Dummy::Application.config.secret_token = 'a0d8f58f23586004e147ccd3730f3e7d66cdf941b501f7c1e59aa37c35d2fb8f48bbd6d5d511a9d9d774a1c7b52561b848b4455d76e455b2fb77cab3920540da' +Dummy::Application.config.secret_token = '0528aeb47dfc51cbe0722cd0c3c7ef009bc50ed4895776616a78a80769f81c76b15a9e38e267e1f01c00436fd9eccfff4c696d6e167be9d0f616a8fc48607011' diff --git a/test/dummy/config/initializers/session_store.rb b/spec/dummy/config/initializers/session_store.rb similarity index 80% rename from test/dummy/config/initializers/session_store.rb rename to spec/dummy/config/initializers/session_store.rb index 952473f..aa2f512 100644 --- a/test/dummy/config/initializers/session_store.rb +++ b/spec/dummy/config/initializers/session_store.rb @@ -1,6 +1,6 @@ # Be sure to restart your server when you modify this file. -Dummy::Application.config.session_store :cookie_store, key: '_dummy_session' +Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information diff --git a/test/dummy/config/initializers/wrap_parameters.rb b/spec/dummy/config/initializers/wrap_parameters.rb similarity index 92% rename from test/dummy/config/initializers/wrap_parameters.rb rename to spec/dummy/config/initializers/wrap_parameters.rb index 999df20..da4fb07 100644 --- a/test/dummy/config/initializers/wrap_parameters.rb +++ b/spec/dummy/config/initializers/wrap_parameters.rb @@ -5,7 +5,7 @@ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] + wrap_parameters :format => [:json] end # Disable root element in JSON by default. diff --git a/test/dummy/config/locales/devise.en.yml b/spec/dummy/config/locales/devise.en.yml similarity index 100% rename from test/dummy/config/locales/devise.en.yml rename to spec/dummy/config/locales/devise.en.yml diff --git a/spec/dummy/config/locales/en.yml b/spec/dummy/config/locales/en.yml new file mode 100644 index 0000000..179c14c --- /dev/null +++ b/spec/dummy/config/locales/en.yml @@ -0,0 +1,5 @@ +# Sample localization file for English. Add more files in this directory for other locales. +# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. + +en: + hello: "Hello world" diff --git a/spec/dummy/config/routes.rb b/spec/dummy/config/routes.rb new file mode 100644 index 0000000..395122c --- /dev/null +++ b/spec/dummy/config/routes.rb @@ -0,0 +1,7 @@ +Rails.application.routes.draw do + devise_for :users + + mount TranslationCenter::Engine => '/translation_center' + + root :to => 'articles#index' +end diff --git a/spec/dummy/db/development.sqlite3 b/spec/dummy/db/development.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..25a6bc5680283459db9ddfc1636bb46829967795 GIT binary patch literal 20480 zcmeI&&u8`0`CUh*c$qHoh91RvDg!iBVG~-Azbb|-0xa3 zFW*i0-MKg3G<3!D@6UF5x4ipJRKHf;r^h@%g8&2|009U<00Izz00bZaf&VXXUVc>Rf4DOF?243&m_t74EqZRH2>E63D`xUJ zGU-K}n#h{m=4;dPN=&)7E2%EysiaO2syAv#=fh5~Jsi_pHKz6`>~{h_-cvzHL7)4m z+dU+yCEe(3a;dYr-)echGRcg#W*TWLY04uTC+7Z%`KMxa!@jqulq$6s4QJ7a)2X?g zr!nh9`Q*|hI!fY;OxyT6%^xhd%hX0eXE0Kn!)x`P;K~S zfBw@y8U!E!0SG_<0uX=z1Rwwb2tWV=TP%S3e~T{{sX+h&5P$##AOHafKmY;|fB*!R G0zUzVNXg^? literal 0 HcmV?d00001 diff --git a/test/dummy/db/migrate/20130410082611_devise_create_users.rb b/spec/dummy/db/migrate/20140428094433_devise_create_users.rb similarity index 100% rename from test/dummy/db/migrate/20130410082611_devise_create_users.rb rename to spec/dummy/db/migrate/20140428094433_devise_create_users.rb diff --git a/test/dummy/lib/assets/.gitkeep b/spec/dummy/db/test.sqlite3 similarity index 100% rename from test/dummy/lib/assets/.gitkeep rename to spec/dummy/db/test.sqlite3 diff --git a/test/dummy/log/.gitkeep b/spec/dummy/lib/assets/.gitkeep similarity index 100% rename from test/dummy/log/.gitkeep rename to spec/dummy/lib/assets/.gitkeep diff --git a/test/dummy/public/favicon.ico b/spec/dummy/log/.gitkeep similarity index 100% rename from test/dummy/public/favicon.ico rename to spec/dummy/log/.gitkeep diff --git a/spec/dummy/log/test.log b/spec/dummy/log/test.log new file mode 100644 index 0000000..bc6e075 --- /dev/null +++ b/spec/dummy/log/test.log @@ -0,0 +1 @@ +Connecting to database specified by database.yml diff --git a/test/dummy/public/404.html b/spec/dummy/public/404.html similarity index 100% rename from test/dummy/public/404.html rename to spec/dummy/public/404.html diff --git a/test/dummy/public/422.html b/spec/dummy/public/422.html similarity index 100% rename from test/dummy/public/422.html rename to spec/dummy/public/422.html diff --git a/test/dummy/public/500.html b/spec/dummy/public/500.html similarity index 100% rename from test/dummy/public/500.html rename to spec/dummy/public/500.html diff --git a/spec/dummy/public/favicon.ico b/spec/dummy/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/test/dummy/script/rails b/spec/dummy/script/rails similarity index 100% rename from test/dummy/script/rails rename to spec/dummy/script/rails diff --git a/spec/models/translation_center/translation_spec.rb b/spec/models/translation_center/translation_spec.rb new file mode 100644 index 0000000..dcd1da9 --- /dev/null +++ b/spec/models/translation_center/translation_spec.rb @@ -0,0 +1,7 @@ +require 'spec_helper' + +module TranslationCenter + describe Translation do + pending "add some examples to (or delete) #{__FILE__}" + end +end diff --git a/test/dummy/spec/spec_helper.rb b/spec/spec_helper.rb similarity index 65% rename from test/dummy/spec/spec_helper.rb rename to spec/spec_helper.rb index 0909127..51259fb 100644 --- a/test/dummy/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,25 +1,18 @@ # This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' -require File.expand_path("../../config/environment", __FILE__) +require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'rspec/autorun' +require 'factory_girl_rails' +require 'database_cleaner' + +Rails.backtrace_cleaner.remove_silencers! # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. -Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} +Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } RSpec.configure do |config| - # ## Mock Framework - # - # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: - # - # config.mock_with :mocha - # config.mock_with :flexmock - # config.mock_with :rr - - # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.fixture_path = "#{::Rails.root}/spec/fixtures" - # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false # instead of true. @@ -35,4 +28,15 @@ # the seed, which is printed after each run. # --seed 1234 config.order = "random" -end + + # Database cleaning + config.use_transactional_fixtures = false + + config.before(:suite) do + DatabaseCleaner.strategy = :transaction + DatabaseCleaner.clean_with(:truncation) + end + + config.before(:each) { DatabaseCleaner.start } + config.after(:each) { DatabaseCleaner.clean } +end \ No newline at end of file diff --git a/test/dummy/app/assets/images/translation_center_logo.png b/test/dummy/app/assets/images/translation_center_logo.png deleted file mode 100644 index 4e031c2e6e768d13dd21ccf02b1b2dd38a39c8be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1950 zcmV;P2VwY$P)9CvB+P+js=@6_y^eY zAFv4uQZ^AJB7Vh~nD{lG8PDzRbE;UJzGFMG*(8Xg+v?kWbZ>qARn_-Z!~c27mv6lF zgCFbS%*JGEXV0I%c*!rl@}0c1yGMwT5R{;bst`1sUa#(n3PA-`K?RQiZzFcL6<@2w zp9Ua)`NnW~=g-$}UU}=<-{2=d`u(u8ziA;FDv7F6R23B=s!>%HDxd*^3L;7fLJS}R zL1f&6r8`}3@1JSH_nryhjqm?Zy2HC~x;y4h+qP8*k*0~|iB)k*u%H2v00JUX*a%?+ z0;&)MWOWAWsNeqRuEke3G_7Ll;{bBbn{KWMs0wX61%Z^T{4K`24p!0d_Om?1;A z+8|GdBc%gm8L@ofh zarMg1AO83!eF8u|nd?8V{JlOnIJ{_Ph(Oy;7>0yu$zsY0l~vo78Za}=?DT1~6#&_s zY>!yTc|1FO_`&-Z-}~Kft8cybrk(ihLkWj+#zMhY*h;`v$o#;@Pqd&%Y!@u;4bbKB==_vuTEVzm_t8g zx*;P7IUDZIt(%{5^ZI2{&gDo6b0;N3qzF+-M+uzWNx3kywY{_3_gy%7c>D-}Spo5_fKYLCTpv4Gcpfr2;S|Cub*HX%90aTiM&% z-rfgd>N|l^h*U%j0wJtRQ5F_!Yp0cJ?(`{x2!{uE*?-|hZe0GD+qZ6V_S`0Qj5yAN zgL_>4^b>Y=cDZx+4zu~3m%sT6*_;>zGh;TJZh*w&qeFd+0TUq9LCzq6zmtMNW*6uz{U2$@BfV*?rFAm$A=XSN8 z)FFgN3;>G6DhAyPAuyywJ82OL>OPmY>mD9*@f(-M&TwvA{)BtCZ?UntO%)?)NL;;k zoz0C67V{Z*?{uV;5hlgzn^s5CY5PF(E{rJAZ+;jvOA`XK()ko7>x*93Sxf z^Ut%hv&-!-K4)ca*$l_oJAYwcRW*cIQs8FVwv+QIWfWmBr)e7yDZ&$!y4_+(nMnx5 zptv-&8&fn0(IJLFGN)ObV;%zlZ8f2(YP!Co3KeEfwk)&xeDmn=L6|Mhphdt%Lsf6A zJRs*x)wHD^MObz{!;lal>Z&MVNEx@{oGbBJ$#O9FBLWHVw=jvp?mt1xy( zMpYR|hzQw{>1=)$&@}X@h?3Kw8k@83emZD0ZHu`xs~bX4st`}@Hs#`o%f81c?w68{ zZCmu$%vp9l{g8m-ltn3xz5VmMKtx1z^mO%{=EE?Ies0utgS!*Qf*Mi+r_6mCNLF;; z-RaZ7!>(i5_odZj^bLb5hGI}dMsVsFIJpfBp;e|H||; z_I&ku`Z71JT)Xk_-~9TWw&067f&c&j07*qoM6N<$f-yNXHYq}!;{X5v diff --git a/test/dummy/app/assets/javascripts/articles.js b/test/dummy/app/assets/javascripts/articles.js deleted file mode 100644 index dee720f..0000000 --- a/test/dummy/app/assets/javascripts/articles.js +++ /dev/null @@ -1,2 +0,0 @@ -// Place all the behaviors and hooks related to the matching controller here. -// All this logic will automatically be available in application.js. diff --git a/test/dummy/app/assets/stylesheets/articles.css b/test/dummy/app/assets/stylesheets/articles.css deleted file mode 100644 index afad32d..0000000 --- a/test/dummy/app/assets/stylesheets/articles.css +++ /dev/null @@ -1,4 +0,0 @@ -/* - Place all the styles related to the matching controller here. - They will automatically be included in application.css. -*/ diff --git a/test/dummy/app/assets/stylesheets/scaffold.css b/test/dummy/app/assets/stylesheets/scaffold.css deleted file mode 100644 index 1ae7000..0000000 --- a/test/dummy/app/assets/stylesheets/scaffold.css +++ /dev/null @@ -1,56 +0,0 @@ -body { background-color: #fff; color: #333; } - -body, p, ol, ul, td { - font-family: verdana, arial, helvetica, sans-serif; - font-size: 13px; - line-height: 18px; -} - -pre { - background-color: #eee; - padding: 10px; - font-size: 11px; -} - -a { color: #000; } -a:visited { color: #666; } -a:hover { color: #fff; background-color:#000; } - -div.field, div.actions { - margin-bottom: 10px; -} - -#notice { - color: green; -} - -.field_with_errors { - padding: 2px; - background-color: red; - display: table; -} - -#error_explanation { - width: 450px; - border: 2px solid red; - padding: 7px; - padding-bottom: 0; - margin-bottom: 20px; - background-color: #f0f0f0; -} - -#error_explanation h2 { - text-align: left; - font-weight: bold; - padding: 5px 5px 5px 15px; - font-size: 12px; - margin: -7px; - margin-bottom: 0px; - background-color: #c00; - color: #fff; -} - -#error_explanation ul li { - font-size: 12px; - list-style: square; -} diff --git a/test/dummy/app/controllers/application_controller.rb b/test/dummy/app/controllers/application_controller.rb deleted file mode 100644 index 6907584..0000000 --- a/test/dummy/app/controllers/application_controller.rb +++ /dev/null @@ -1,6 +0,0 @@ -class ApplicationController < ActionController::Base - protect_from_forgery - # def add_category - # TranslationCenter::Category.create(name: controller_name) - # end -end diff --git a/test/dummy/app/controllers/articles_controller.rb b/test/dummy/app/controllers/articles_controller.rb deleted file mode 100644 index f489cde..0000000 --- a/test/dummy/app/controllers/articles_controller.rb +++ /dev/null @@ -1,85 +0,0 @@ -class ArticlesController < ApplicationController - before_filter :authenticate_user! - - # GET /articles - # GET /articles.json - def index - @articles = Article.all - - respond_to do |format| - format.html # index.html.erb - format.json { render json: @articles } - end - end - - # GET /articles/1 - # GET /articles/1.json - def show - @article = Article.find(params[:id]) - - respond_to do |format| - format.html # show.html.erb - format.json { render json: @article } - end - end - - # GET /articles/new - # GET /articles/new.json - def new - @article = Article.new - - respond_to do |format| - format.html # new.html.erb - format.json { render json: @article } - end - end - - # GET /articles/1/edit - def edit - @article = Article.find(params[:id]) - end - - # POST /articles - # POST /articles.json - def create - @article = Article.new(params[:article]) - - respond_to do |format| - if @article.save - format.html { redirect_to @article, notice: 'Article was successfully created.' } - format.json { render json: @article, status: :created, location: @article } - else - format.html { render action: "new" } - format.json { render json: @article.errors, status: :unprocessable_entity } - end - end - end - - # PUT /articles/1 - # PUT /articles/1.json - def update - @article = Article.find(params[:id]) - - respond_to do |format| - if @article.update_attributes(params[:article]) - format.html { redirect_to @article, notice: 'Article was successfully updated.' } - format.json { head :ok } - else - format.html { render action: "edit" } - format.json { render json: @article.errors, status: :unprocessable_entity } - end - end - end - - # DELETE /articles/1 - # DELETE /articles/1.json - def destroy - @article = Article.find(params[:id]) - @article.destroy - - respond_to do |format| - format.html { redirect_to articles_url } - format.json { head :ok } - end - end -end diff --git a/test/dummy/app/helpers/articles_helper.rb b/test/dummy/app/helpers/articles_helper.rb deleted file mode 100644 index 2968277..0000000 --- a/test/dummy/app/helpers/articles_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ArticlesHelper -end diff --git a/test/dummy/app/models/article.rb b/test/dummy/app/models/article.rb deleted file mode 100644 index 00e4f72..0000000 --- a/test/dummy/app/models/article.rb +++ /dev/null @@ -1,7 +0,0 @@ -class Article < ActiveRecord::Base - - attr_accessible :title, :content - - validates :title, presence: true - -end diff --git a/test/dummy/app/views/articles/_form.html.haml b/test/dummy/app/views/articles/_form.html.haml deleted file mode 100644 index 873a59e..0000000 --- a/test/dummy/app/views/articles/_form.html.haml +++ /dev/null @@ -1,16 +0,0 @@ -= form_for @article do |f| - - if @article.errors.any? - #error_explanation - %h2= "#{pluralize(@article.errors.count, "error")} prohibited this article from being saved:" - %ul - - @article.errors.full_messages.each do |msg| - %li= msg - - .field - = f.label :title - = f.text_field :title - .field - = f.label :content - = f.text_area :content - .actions - = f.submit 'Save' diff --git a/test/dummy/app/views/articles/edit.html.haml b/test/dummy/app/views/articles/edit.html.haml deleted file mode 100644 index eded643..0000000 --- a/test/dummy/app/views/articles/edit.html.haml +++ /dev/null @@ -1,7 +0,0 @@ -%h1 Editing article - -= render 'form' - -= link_to 'Show', @article -\| -= link_to 'Back', articles_path diff --git a/test/dummy/app/views/articles/index.html.haml b/test/dummy/app/views/articles/index.html.haml deleted file mode 100644 index 5c261a9..0000000 --- a/test/dummy/app/views/articles/index.html.haml +++ /dev/null @@ -1,32 +0,0 @@ -%h1 Listing articles - -= number_to_currency(10) - -%table - %tr - %th= t('.title') - %th= t('.content') - %th - %th - %th - - - @articles.each do |article| - %tr - %td= article.title - %td= article.content - %td= link_to 'Show', article - %td= link_to 'Edit', edit_article_path(article) - %td= link_to 'Destroy', article, :method => :delete, :data => { :confirm => 'Are you sure?' } - -%br - -= link_to 'New Article', new_article_path - -#test_content - test ajax content -= link_to 'test ajax', '#', id: :test_ajax - -:javascript - $('#test_ajax').click(function(){ - $('#test_content').load('/') - }) \ No newline at end of file diff --git a/test/dummy/app/views/articles/new.html.haml b/test/dummy/app/views/articles/new.html.haml deleted file mode 100644 index f4b8286..0000000 --- a/test/dummy/app/views/articles/new.html.haml +++ /dev/null @@ -1,5 +0,0 @@ -%h1 New article - -= render 'form' - -= link_to 'Back', articles_path diff --git a/test/dummy/app/views/articles/show.html.haml b/test/dummy/app/views/articles/show.html.haml deleted file mode 100644 index 87ad3cd..0000000 --- a/test/dummy/app/views/articles/show.html.haml +++ /dev/null @@ -1,14 +0,0 @@ -%p#notice= notice - -%p - %b Title: - = @article.title -%p - %b Content: - = @article.content - - = time_ago_in_words @article.created_at - -= link_to 'Edit', edit_article_path(@article) -\| -= link_to 'Back', articles_path diff --git a/test/dummy/config/database.yml b/test/dummy/config/database.yml deleted file mode 100644 index b2c07e2..0000000 --- a/test/dummy/config/database.yml +++ /dev/null @@ -1,17 +0,0 @@ -development: - adapter: sqlite3 - database: db/development.sqlite3 - pool: 5 - timeout: 5000 - -test: - adapter: sqlite3 - database: db/test.sqlite3 - pool: 5 - timeout: 5000 - -production: - adapter: sqlite3 - database: db/production.sqlite3 - pool: 5 - timeout: 5000 \ No newline at end of file diff --git a/test/dummy/config/locales/ar.yml b/test/dummy/config/locales/ar.yml deleted file mode 100644 index 2dcdc1f..0000000 --- a/test/dummy/config/locales/ar.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -ar: - activerecord: - errors: - messages: - taken: محجوز diff --git a/test/dummy/config/locales/de.yml b/test/dummy/config/locales/de.yml deleted file mode 100644 index a0dd837..0000000 --- a/test/dummy/config/locales/de.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -de: {} diff --git a/test/dummy/config/locales/en.yml b/test/dummy/config/locales/en.yml deleted file mode 100644 index 433f268..0000000 --- a/test/dummy/config/locales/en.yml +++ /dev/null @@ -1,361 +0,0 @@ ---- -en: - activerecord: - errors: - messages: - record_invalid: "Validation failed: %{errors}" - taken: "has already been taken" - articles: - index: - content: Content - name: Name - title: Title - date: - abbr_day_names: - - Sun - - Mon - - Tue - - Wed - - Thu - - Fri - - Sat - abbr_month_names: - - ~ - - Jan - - Feb - - Mar - - Apr - - May - - Jun - - Jul - - Aug - - Sep - - Oct - - Nov - - Dec - day_names: - - Sunday - - Monday - - Tuesday - - Wednesday - - Thursday - - Friday - - Saturday - formats: - default: "%Y-%m-%d" - long: "%B %d, %Y" - short: "%b %d" - month_names: - - ~ - - January - - February - - March - - April - - May - - June - - July - - August - - September - - October - - November - - December - order: - - !ruby/symbol year - - !ruby/symbol month - - !ruby/symbol day - datetime: - distance_in_words: - about_x_hours: - one: "about 1 hour" - other: "about %{count} hours" - about_x_months: - one: "about 1 month" - other: "about %{count} months" - about_x_years: - one: "about 1 year" - other: "about %{count} years" - almost_x_years: - one: "almost 1 year" - other: "almost %{count} years" - half_a_minute: "half a minute" - less_than_x_minutes: - one: "less than a minute" - other: "less than %{count} minutes" - less_than_x_seconds: - one: "less than 1 second" - other: "less than %{count} seconds" - over_x_years: - one: "over 1 year" - other: "over %{count} years" - x_days: - one: "1 day" - other: "%{count} days" - x_minutes: - one: "1 minute" - other: "%{count} minutes" - x_months: - one: "1 month" - other: "%{count} months" - x_seconds: - one: "1 second" - other: "%{count} seconds" - prompts: - day: Day - hour: Hour - minute: Minute - month: Month - second: Seconds - year: Year - devise: - confirmations: - confirmed: "Your account was successfully confirmed. You are now signed in." - send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes." - send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes." - failure: - already_authenticated: "You are already signed in." - inactive: "Your account was not activated yet." - invalid: "Invalid email or password." - invalid_token: "Invalid authentication token." - locked: "Your account is locked." - not_found_in_database: "Invalid email or password." - timeout: "Your session expired, please sign in again to continue." - unauthenticated: "You need to sign in or sign up before continuing." - unconfirmed: "You have to confirm your account before continuing." - mailer: - confirmation_instructions: - subject: "Confirmation instructions" - reset_password_instructions: - subject: "Reset password instructions" - unlock_instructions: - subject: "Unlock Instructions" - omniauth_callbacks: - failure: "Could not authenticate you from %{kind} because \"%{reason}\"." - success: "Successfully authenticated from %{kind} account." - passwords: - no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided." - send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes." - send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes." - updated: "Your password was changed successfully. You are now signed in." - updated_not_active: "Your password was changed successfully." - registrations: - destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon." - signed_up: "Welcome! You have signed up successfully." - signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated." - signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked." - signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account." - update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address." - updated: "You updated your account successfully." - sessions: - signed_in: "Signed in successfully." - signed_out: "Signed out successfully." - unlocks: - send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes." - send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes." - unlocked: "Your account has been unlocked successfully. Please sign in to continue." - errors: - format: "%{attribute} %{message}" - messages: - accepted: "must be accepted" - already_confirmed: "was already confirmed, please try signing in" - blank: "can't be blank" - confirmation: "doesn't match confirmation" - confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one" - empty: "can't be empty" - equal_to: "must be equal to %{count}" - even: "must be even" - exclusion: "is reserved" - expired: "has expired, please request a new one" - greater_than: "must be greater than %{count}" - greater_than_or_equal_to: "must be greater than or equal to %{count}" - inclusion: "is not included in the list" - invalid: "is invalid" - less_than: "must be less than %{count}" - less_than_or_equal_to: "must be less than or equal to %{count}" - not_a_number: "is not a number" - not_an_integer: "must be an integer" - not_found: "not found" - not_locked: "was not locked" - not_saved: - one: "1 error prohibited this %{resource} from being saved:" - other: "%{count} errors prohibited this %{resource} from being saved:" - odd: "must be odd" - too_long: "is too long (maximum is %{count} characters)" - too_short: "is too short (minimum is %{count} characters)" - wrong_length: "is the wrong length (should be %{count} characters)" - helpers: - button: - create: "Create %{model}" - submit: "Save %{model}" - update: "Update %{model}" - select: - prompt: "Please select" - submit: - create: "Create %{model}" - submit: "Save %{model}" - update: "Update %{model}" - meta_search: - or: or - predicates: - contains: "%{attribute} contains" - does_not_contain: "%{attribute} doesn't contain" - does_not_end_with: "%{attribute} doesn't end with" - does_not_equal: "%{attribute} doesn't equal" - does_not_start_with: "%{attribute} doesn't start with" - ends_with: "%{attribute} ends with" - equals: "%{attribute} equals" - greater_than: "%{attribute} greater than" - greater_than_or_equal_to: "%{attribute} greater than or equal to" - in: "%{attribute} is one of" - is_blank: "%{attribute} is blank" - is_false: "%{attribute} is false" - is_not_null: "%{attribute} isn't null" - is_null: "%{attribute} is null" - is_present: "%{attribute} is present" - is_true: "%{attribute} is true" - less_than: "%{attribute} less than" - less_than_or_equal_to: "%{attribute} less than or equal to" - not_in: "%{attribute} isn't one of" - starts_with: "%{attribute} starts with" - number: - currency: - format: - delimiter: "," - format: "%u%n" - negative_format: "-%u%n" - precision: 2 - separator: "." - unit: $ - format: - delimiter: "," - precision: 3 - separator: "." - human: - decimal_units: - format: "%n %u" - units: - billion: Billion - million: Million - quadrillion: Quadrillion - thousand: Thousand - trillion: Trillion - format: - precision: 3 - significant: true - strip_insignificant_zeros: true - storage_units: - format: "%n %u" - units: - byte: - one: Byte - other: Bytes - gb: GB - kb: KB - mb: MB - tb: TB - pagination: - first: First - last: Last - next: Next - prev: Prev - support: - array: - last_word_connector: ", and " - two_words_connector: " and " - words_connector: ", " - time: - am: am - formats: - default: "%a, %d %b %Y %H:%M:%S %z" - long: "%B %d, %Y %H:%M" - short: "%d %b %H:%M" - pm: pm - translation_center: - actions: - are_you_sure: "Are you sure ?" - back_to_app: "Back To App" - categories: - category: - complete: Complete - keys: Keys - index: - categories: Categories - show: - all: All - pending: Pending - translated: Translated - untranslated: Untranslated - center: - activity: - ago: ago - changes: Changes - key: Key - locale: Locale - of: Of - time: Time - user: User - dashboard: - activity: Activity - all: All - controls: Controls - dashboard: Dashboard - language: Language - pending: Pending - progress: Progress - reset: Reset - search: Search - select_locale: "Select Locale" - these_actions_will_affect_existing_data: "These actions will affect existing data" - translated: Translated - untranslated: Untranslated - pagination_links: - of: Of - search: - title: "Keys with translations that contain '%{value}'" - dashboard: Dashboard - pagination: - first: First - last: Last - next: Next - prev: Prev. - search_keys: Keys - search_translations: Translations - translate_to: "Translate To" - translation_center: "Translation Center" - translation_keys: - destroyed_successfully: "Destroyed Successfully" - show: - add_edit_translation: "Add/Edit Translation" - back_to_category: "Back to" - destroy: Destroy - translations: Translations - show_keys: - created_on: "created on" - translated: Translated - translation_keys: - no_translation_keys: "No Translation Keys" - translations: - accept_translation: - unaccept: Unaccept - index: - date: Date - sort_by: "Sort by" - votes: Votes - votings: Votes - search: - first: First - last: Last - next: Next - of: Of - prev: Prev - search_results: - first: First - last: Last - next: Next - of: Of - prev: Prev - show: - by: by - on_date: "on" - vote: Vote - votings: Votes - you: You diff --git a/test/dummy/config/routes.rb b/test/dummy/config/routes.rb deleted file mode 100644 index f20bc22..0000000 --- a/test/dummy/config/routes.rb +++ /dev/null @@ -1,10 +0,0 @@ -Rails.application.routes.draw do - - resources :articles - - devise_for :users - - mount TranslationCenter::Engine => "/translation_center" - - root to: "articles#index" -end diff --git a/test/dummy/config/translation_center.yml b/test/dummy/config/translation_center.yml deleted file mode 100644 index c98f9eb..0000000 --- a/test/dummy/config/translation_center.yml +++ /dev/null @@ -1,58 +0,0 @@ -common_atts: &common_atts - # what language to support and their display names - lang: - en: - name: 'English' - direction: 'ltr' - de: - name: 'Deutch' - direction: 'ltr' - ar: - name: 'Arabic' - direction: 'rtl' - - # yaml imported translations created by translator email, usually User email - yaml_translator_identifier: 'khaled@badrit.com' - - # when import translation from yaml to db set it to accepted by default - yaml2db_translations_accepted: true # default is false - - # when admins add/edit translations they are considered accepted directly - accept_admin_translations: true - - # identifier_type: 'email' # Uncomment and change the identifier if your User model has no email attribute - # translator_type: 'User' # Uncomment and change if you want to change the translator type - -development: - enabled: true # default false - - # Keys inspector allowed values: - # "missing" to inspect only untranslated keys - # "all" to enable inspector for translated and untranslated keys - # "off" to turn off keys inspector - inspector: 'all' # default missing - - # I18n.translate source - i18n_source: 'yaml' # can be db or yaml; default is db - - # when a new key is added to db, the value of the key is added as the default translation in English - save_default_translation: true - - <<: *common_atts - -production: - enabled: true # default false - - # Keys inspector allowed values: - # "missing" to inspect only untranslated keys - # "all" to enable inspector for translated and untranslated keys - # "off" to turn off keys inspector - inspector: 'off' # default missing - - # I18n.translate source - i18n_source: 'yaml' # can be db or yaml; default is yaml - - # when a new key is added to db, the value of the key is added as the default translation in English - save_default_translation: false - - <<: *common_atts diff --git a/test/dummy/db/migrate/20130410082701_create_articles.rb b/test/dummy/db/migrate/20130410082701_create_articles.rb deleted file mode 100644 index 1418a21..0000000 --- a/test/dummy/db/migrate/20130410082701_create_articles.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateArticles < ActiveRecord::Migration - def change - create_table :articles do |t| - t.string :title - t.text :content - - t.timestamps - end - end -end diff --git a/test/dummy/db/migrate/20130410084711234392_create_translation_center_categories.rb b/test/dummy/db/migrate/20130410084711234392_create_translation_center_categories.rb deleted file mode 100644 index 73fd4fd..0000000 --- a/test/dummy/db/migrate/20130410084711234392_create_translation_center_categories.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateTranslationCenterCategories < ActiveRecord::Migration - def change - create_table :translation_center_categories do |t| - t.string :name - - t.timestamps - end - end -end diff --git a/test/dummy/db/migrate/20130410084711235054_create_translation_center_translation_keys.rb b/test/dummy/db/migrate/20130410084711235054_create_translation_center_translation_keys.rb deleted file mode 100644 index 4109db6..0000000 --- a/test/dummy/db/migrate/20130410084711235054_create_translation_center_translation_keys.rb +++ /dev/null @@ -1,14 +0,0 @@ -class CreateTranslationCenterTranslationKeys < ActiveRecord::Migration - def change - create_table :translation_center_translation_keys do |t| - t.string :name - t.integer :category_id - t.datetime :last_accessed - - t.string :en_status, default: 'untranslated' - - - t.timestamps - end - end -end diff --git a/test/dummy/db/migrate/20130410084711235601_create_translation_center_translations.rb b/test/dummy/db/migrate/20130410084711235601_create_translation_center_translations.rb deleted file mode 100644 index de0c038..0000000 --- a/test/dummy/db/migrate/20130410084711235601_create_translation_center_translations.rb +++ /dev/null @@ -1,13 +0,0 @@ -class CreateTranslationCenterTranslations < ActiveRecord::Migration - def change - create_table :translation_center_translations do |t| - t.integer :translation_key_id - t.string :value - t.string :lang - t.integer :user_id - t.string :status, default: 'pending' - - t.timestamps - end - end -end diff --git a/test/dummy/db/migrate/20130410084711235602_install_audited.rb b/test/dummy/db/migrate/20130410084711235602_install_audited.rb deleted file mode 100644 index fb2a927..0000000 --- a/test/dummy/db/migrate/20130410084711235602_install_audited.rb +++ /dev/null @@ -1,28 +0,0 @@ -class InstallAudited < ActiveRecord::Migration - def self.up - create_table :audits, :force => true do |t| - t.column :auditable_id, :integer - t.column :auditable_type, :string - t.column :associated_id, :integer - t.column :associated_type, :string - t.column :user_id, :integer - t.column :user_type, :string - t.column :username, :string - t.column :action, :string - t.column :audited_changes, :text - t.column :version, :integer, :default => 0 - t.column :comment, :string - t.column :remote_address, :string - t.column :created_at, :datetime - end - - add_index :audits, [:auditable_id, :auditable_type], :name => 'auditable_index' - add_index :audits, [:associated_id, :associated_type], :name => 'associated_index' - add_index :audits, [:user_id, :user_type], :name => 'user_index' - add_index :audits, :created_at - end - - def self.down - drop_table :audits - end -end diff --git a/test/dummy/db/migrate/20130410084711_acts_as_votable_migration.rb b/test/dummy/db/migrate/20130410084711_acts_as_votable_migration.rb deleted file mode 100644 index f6de35c..0000000 --- a/test/dummy/db/migrate/20130410084711_acts_as_votable_migration.rb +++ /dev/null @@ -1,23 +0,0 @@ -class ActsAsVotableMigration < ActiveRecord::Migration - def self.up - create_table :votes do |t| - - t.references :votable, :polymorphic => true - t.references :voter, :polymorphic => true - - t.boolean :vote_flag - t.string :vote_scope - - t.timestamps - end - - add_index :votes, [:votable_id, :votable_type] - add_index :votes, [:voter_id, :voter_type] - add_index :votes, [:voter_id, :voter_type, :vote_scope] - add_index :votes, [:votable_id, :votable_type, :vote_scope] - end - - def self.down - drop_table :votes - end -end diff --git a/test/dummy/db/migrate/20130410113111070575_add_de_status_translation_center_translation_keys.rb b/test/dummy/db/migrate/20130410113111070575_add_de_status_translation_center_translation_keys.rb deleted file mode 100644 index 4ff50be..0000000 --- a/test/dummy/db/migrate/20130410113111070575_add_de_status_translation_center_translation_keys.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddDeStatusTranslationCenterTranslationKeys < ActiveRecord::Migration - def change - add_column :translation_center_translation_keys, :de_status, :string, default: 'untranslated' - end -end diff --git a/test/dummy/db/migrate/20130417134539377014_add_ar_status_translation_center_translation_keys.rb b/test/dummy/db/migrate/20130417134539377014_add_ar_status_translation_center_translation_keys.rb deleted file mode 100644 index 291b852..0000000 --- a/test/dummy/db/migrate/20130417134539377014_add_ar_status_translation_center_translation_keys.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddArStatusTranslationCenterTranslationKeys < ActiveRecord::Migration - def change - add_column :translation_center_translation_keys, :ar_status, :string, default: 'untranslated' - end -end diff --git a/test/dummy/db/migrate/20130506103956_fix_translation_user_relation.rb b/test/dummy/db/migrate/20130506103956_fix_translation_user_relation.rb deleted file mode 100644 index ea88cbb..0000000 --- a/test/dummy/db/migrate/20130506103956_fix_translation_user_relation.rb +++ /dev/null @@ -1,12 +0,0 @@ -class FixTranslationUserRelation < ActiveRecord::Migration - def up - rename_column :translation_center_translations, :user_id, :translator_id - add_column :translation_center_translations, :translator_type, :string - TranslationCenter::Translation.update_all(translator_type: 'User') - end - - def down - rename_column :translation_center_translations, :translator_id, :user_id - remove_column :translation_center_translations, :translator_type - end -end diff --git a/test/dummy/db/migrate/20130801102022_add_indicies.rb b/test/dummy/db/migrate/20130801102022_add_indicies.rb deleted file mode 100644 index c319f59..0000000 --- a/test/dummy/db/migrate/20130801102022_add_indicies.rb +++ /dev/null @@ -1,8 +0,0 @@ -class AddIndicies < ActiveRecord::Migration - - def change - add_index :translation_center_translation_keys, :name - add_index :translation_center_translations, :translation_key_id - end - -end diff --git a/test/dummy/db/schema.rb b/test/dummy/db/schema.rb deleted file mode 100644 index 5578d2c..0000000 --- a/test/dummy/db/schema.rb +++ /dev/null @@ -1,110 +0,0 @@ -# encoding: UTF-8 -# This file is auto-generated from the current state of the database. Instead -# of editing this file, please use the migrations feature of Active Record to -# incrementally modify your database, and then regenerate this schema definition. -# -# Note that this schema.rb definition is the authoritative source for your -# database schema. If you need to create the application database on another -# system, you should be using db:schema:load, not running all the migrations -# from scratch. The latter is a flawed and unsustainable approach (the more migrations -# you'll amass, the slower it'll run and the greater likelihood for issues). -# -# It's strongly recommended to check this file into your version control system. - -ActiveRecord::Schema.define(:version => 20130417134539377014) do - - create_table "articles", :force => true do |t| - t.string "title" - t.text "content" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "audits", :force => true do |t| - t.integer "auditable_id" - t.string "auditable_type" - t.integer "associated_id" - t.string "associated_type" - t.integer "user_id" - t.string "user_type" - t.string "username" - t.string "action" - t.text "audited_changes" - t.integer "version", :default => 0 - t.string "comment" - t.string "remote_address" - t.datetime "created_at" - end - - add_index "audits", ["associated_id", "associated_type"], :name => "associated_index" - add_index "audits", ["auditable_id", "auditable_type"], :name => "auditable_index" - add_index "audits", ["created_at"], :name => "index_audits_on_created_at" - add_index "audits", ["user_id", "user_type"], :name => "user_index" - - create_table "translation_center_categories", :force => true do |t| - t.string "name" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "translation_center_translation_keys", :force => true do |t| - t.string "name" - t.integer "category_id" - t.datetime "last_accessed" - t.string "en_status", :default => "untranslated" - t.datetime "created_at" - t.datetime "updated_at" - t.string "de_status", :default => "untranslated" - t.string "ar_status", :default => "untranslated" - end - - add_index "translation_center_translation_keys", ["name"], :name => "index_translation_center_translation_keys_on_name" - - create_table "translation_center_translations", :force => true do |t| - t.integer "translation_key_id" - t.string "value" - t.string "lang" - t.integer "translator_id" - t.string "status", :default => "pending" - t.datetime "created_at" - t.datetime "updated_at" - t.string "translator_type" - end - - add_index "translation_center_translations", ["translation_key_id"], :name => "index_translation_center_translations_on_translation_key_id" - - create_table "users", :force => true do |t| - t.string "email", :default => "", :null => false - t.string "encrypted_password", :default => "", :null => false - t.string "reset_password_token" - t.datetime "reset_password_sent_at" - t.datetime "remember_created_at" - t.integer "sign_in_count", :default => 0 - t.datetime "current_sign_in_at" - t.datetime "last_sign_in_at" - t.string "current_sign_in_ip" - t.string "last_sign_in_ip" - t.datetime "created_at" - t.datetime "updated_at" - end - - add_index "users", ["email"], :name => "index_users_on_email", :unique => true - add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true - - create_table "votes", :force => true do |t| - t.integer "votable_id" - t.string "votable_type" - t.integer "voter_id" - t.string "voter_type" - t.boolean "vote_flag" - t.string "vote_scope" - t.datetime "created_at" - t.datetime "updated_at" - end - - add_index "votes", ["votable_id", "votable_type", "vote_scope"], :name => "index_votes_on_votable_id_and_votable_type_and_vote_scope" - add_index "votes", ["votable_id", "votable_type"], :name => "index_votes_on_votable_id_and_votable_type" - add_index "votes", ["voter_id", "voter_type", "vote_scope"], :name => "index_votes_on_voter_id_and_voter_type_and_vote_scope" - add_index "votes", ["voter_id", "voter_type"], :name => "index_votes_on_voter_id_and_voter_type" - -end diff --git a/test/dummy/test/fixtures/articles.yml b/test/dummy/test/fixtures/articles.yml deleted file mode 100644 index 3a1c76d..0000000 --- a/test/dummy/test/fixtures/articles.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/Fixtures.html - -one: - title: MyString - content: MyText - -two: - title: MyString - content: MyText diff --git a/test/dummy/test/fixtures/posts.yml b/test/dummy/test/fixtures/posts.yml deleted file mode 100644 index 0145758..0000000 --- a/test/dummy/test/fixtures/posts.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html - -one: - title: MyString - content: MyText - -two: - title: MyString - content: MyText diff --git a/test/dummy/test/fixtures/users.yml b/test/dummy/test/fixtures/users.yml deleted file mode 100644 index 5394fa3..0000000 --- a/test/dummy/test/fixtures/users.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/Fixtures.html - -# This model initially had no columns defined. If you add columns to the -# model remove the '{}' from the fixture names and add the columns immediately -# below each fixture, per the syntax in the comments below -# -one: {} -# column: value -# -two: {} -# column: value diff --git a/test/dummy/test/functional/articles_controller_test.rb b/test/dummy/test/functional/articles_controller_test.rb deleted file mode 100644 index 547e5ca..0000000 --- a/test/dummy/test/functional/articles_controller_test.rb +++ /dev/null @@ -1,49 +0,0 @@ -require 'test_helper' - -class ArticlesControllerTest < ActionController::TestCase - setup do - @article = articles(:one) - end - - test "should get index" do - get :index - assert_response :success - assert_not_nil assigns(:articles) - end - - test "should get new" do - get :new - assert_response :success - end - - test "should create article" do - assert_difference('Article.count') do - post :create, article: @article.attributes - end - - assert_redirected_to article_path(assigns(:article)) - end - - test "should show article" do - get :show, id: @article.to_param - assert_response :success - end - - test "should get edit" do - get :edit, id: @article.to_param - assert_response :success - end - - test "should update article" do - put :update, id: @article.to_param, article: @article.attributes - assert_redirected_to article_path(assigns(:article)) - end - - test "should destroy article" do - assert_difference('Article.count', -1) do - delete :destroy, id: @article.to_param - end - - assert_redirected_to articles_path - end -end diff --git a/test/dummy/test/functional/posts_controller_test.rb b/test/dummy/test/functional/posts_controller_test.rb deleted file mode 100644 index dd03e46..0000000 --- a/test/dummy/test/functional/posts_controller_test.rb +++ /dev/null @@ -1,49 +0,0 @@ -require 'test_helper' - -class PostsControllerTest < ActionController::TestCase - setup do - @post = posts(:one) - end - - test "should get index" do - get :index - assert_response :success - assert_not_nil assigns(:posts) - end - - test "should get new" do - get :new - assert_response :success - end - - test "should create post" do - assert_difference('Post.count') do - post :create, post: { content: @post.content, title: @post.title } - end - - assert_redirected_to post_path(assigns(:post)) - end - - test "should show post" do - get :show, id: @post - assert_response :success - end - - test "should get edit" do - get :edit, id: @post - assert_response :success - end - - test "should update post" do - put :update, id: @post, post: { content: @post.content, title: @post.title } - assert_redirected_to post_path(assigns(:post)) - end - - test "should destroy post" do - assert_difference('Post.count', -1) do - delete :destroy, id: @post - end - - assert_redirected_to posts_path - end -end diff --git a/test/dummy/test/unit/article_test.rb b/test/dummy/test/unit/article_test.rb deleted file mode 100644 index 11c8abe..0000000 --- a/test/dummy/test/unit/article_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class ArticleTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/dummy/test/unit/helpers/articles_helper_test.rb b/test/dummy/test/unit/helpers/articles_helper_test.rb deleted file mode 100644 index b341344..0000000 --- a/test/dummy/test/unit/helpers/articles_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class ArticlesHelperTest < ActionView::TestCase -end diff --git a/test/dummy/test/unit/helpers/posts_helper_test.rb b/test/dummy/test/unit/helpers/posts_helper_test.rb deleted file mode 100644 index 48549c2..0000000 --- a/test/dummy/test/unit/helpers/posts_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class PostsHelperTest < ActionView::TestCase -end diff --git a/test/dummy/test/unit/post_test.rb b/test/dummy/test/unit/post_test.rb deleted file mode 100644 index 6d9d463..0000000 --- a/test/dummy/test/unit/post_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PostTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/dummy/test/unit/user_test.rb b/test/dummy/test/unit/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/test/dummy/test/unit/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/fixtures/translation_center/categories.yml b/test/fixtures/translation_center/categories.yml deleted file mode 100644 index 0227c60..0000000 --- a/test/fixtures/translation_center/categories.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html - -one: - name: MyString - -two: - name: MyString diff --git a/test/fixtures/translation_center/translation_keys.yml b/test/fixtures/translation_center/translation_keys.yml deleted file mode 100644 index 7a65bde..0000000 --- a/test/fixtures/translation_center/translation_keys.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html - -one: - name: MyString - category_id: 1 - last_accessed: 2012-11-21 - -two: - name: MyString - category_id: 1 - last_accessed: 2012-11-21 diff --git a/test/fixtures/translation_center/translations.yml b/test/fixtures/translation_center/translations.yml deleted file mode 100644 index 2a2162d..0000000 --- a/test/fixtures/translation_center/translations.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html - -one: - translation_key_id: 1 - value: MyString - lang: MyString - status: MyString - user_id: 1 - -two: - translation_key_id: 1 - value: MyString - lang: MyString - status: MyString - user_id: 1 diff --git a/test/functional/translation_center/categories_controller_test.rb b/test/functional/translation_center/categories_controller_test.rb deleted file mode 100644 index 07f0a0c..0000000 --- a/test/functional/translation_center/categories_controller_test.rb +++ /dev/null @@ -1,51 +0,0 @@ -require 'test_helper' - -module TranslationCenter - class CategoriesControllerTest < ActionController::TestCase - setup do - @category = categories(:one) - end - - test "should get index" do - get :index - assert_response :success - assert_not_nil assigns(:categories) - end - - test "should get new" do - get :new - assert_response :success - end - - test "should create category" do - assert_difference('Category.count') do - post :create, category: { name: @category.name } - end - - assert_redirected_to category_path(assigns(:category)) - end - - test "should show category" do - get :show, id: @category - assert_response :success - end - - test "should get edit" do - get :edit, id: @category - assert_response :success - end - - test "should update category" do - put :update, id: @category, category: { name: @category.name } - assert_redirected_to category_path(assigns(:category)) - end - - test "should destroy category" do - assert_difference('Category.count', -1) do - delete :destroy, id: @category - end - - assert_redirected_to categories_path - end - end -end diff --git a/test/functional/translation_center/center_controller_test.rb b/test/functional/translation_center/center_controller_test.rb deleted file mode 100644 index d2a0bb9..0000000 --- a/test/functional/translation_center/center_controller_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'test_helper' - -module TranslationCenter - class CenterControllerTest < ActionController::TestCase - # test "the truth" do - # assert true - # end - end -end diff --git a/test/functional/translation_center/translation_keys_controller_test.rb b/test/functional/translation_center/translation_keys_controller_test.rb deleted file mode 100644 index ea50f54..0000000 --- a/test/functional/translation_center/translation_keys_controller_test.rb +++ /dev/null @@ -1,51 +0,0 @@ -require 'test_helper' - -module TranslationCenter - class TranslationKeysControllerTest < ActionController::TestCase - setup do - @translation_key = translation_keys(:one) - end - - test "should get index" do - get :index - assert_response :success - assert_not_nil assigns(:translation_keys) - end - - test "should get new" do - get :new - assert_response :success - end - - test "should create translation_key" do - assert_difference('TranslationKey.count') do - post :create, translation_key: { category_id: @translation_key.category_id, last_accessed: @translation_key.last_accessed, name: @translation_key.name } - end - - assert_redirected_to translation_key_path(assigns(:translation_key)) - end - - test "should show translation_key" do - get :show, id: @translation_key - assert_response :success - end - - test "should get edit" do - get :edit, id: @translation_key - assert_response :success - end - - test "should update translation_key" do - put :update, id: @translation_key, translation_key: { category_id: @translation_key.category_id, last_accessed: @translation_key.last_accessed, name: @translation_key.name } - assert_redirected_to translation_key_path(assigns(:translation_key)) - end - - test "should destroy translation_key" do - assert_difference('TranslationKey.count', -1) do - delete :destroy, id: @translation_key - end - - assert_redirected_to translation_keys_path - end - end -end diff --git a/test/functional/translation_center/translations_controller_test.rb b/test/functional/translation_center/translations_controller_test.rb deleted file mode 100644 index 4e4163d..0000000 --- a/test/functional/translation_center/translations_controller_test.rb +++ /dev/null @@ -1,51 +0,0 @@ -require 'test_helper' - -module TranslationCenter - class TranslationsControllerTest < ActionController::TestCase - setup do - @translation = translations(:one) - end - - test "should get index" do - get :index - assert_response :success - assert_not_nil assigns(:translations) - end - - test "should get new" do - get :new - assert_response :success - end - - test "should create translation" do - assert_difference('Translation.count') do - post :create, translation: { lang: @translation.lang, status: @translation.status, translation_key_id: @translation.translation_key_id, user_id: @translation.user_id, value: @translation.value } - end - - assert_redirected_to translation_path(assigns(:translation)) - end - - test "should show translation" do - get :show, id: @translation - assert_response :success - end - - test "should get edit" do - get :edit, id: @translation - assert_response :success - end - - test "should update translation" do - put :update, id: @translation, translation: { lang: @translation.lang, status: @translation.status, translation_key_id: @translation.translation_key_id, user_id: @translation.user_id, value: @translation.value } - assert_redirected_to translation_path(assigns(:translation)) - end - - test "should destroy translation" do - assert_difference('Translation.count', -1) do - delete :destroy, id: @translation - end - - assert_redirected_to translations_path - end - end -end diff --git a/test/integration/navigation_test.rb b/test/integration/navigation_test.rb deleted file mode 100644 index 97a94c9..0000000 --- a/test/integration/navigation_test.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'test_helper' - -class NavigationTest < ActionDispatch::IntegrationTest - fixtures :all - - # test "the truth" do - # assert true - # end -end - diff --git a/test/test_helper.rb b/test/test_helper.rb deleted file mode 100644 index 1e26a31..0000000 --- a/test/test_helper.rb +++ /dev/null @@ -1,15 +0,0 @@ -# Configure Rails Environment -ENV["RAILS_ENV"] = "test" - -require File.expand_path("../dummy/config/environment.rb", __FILE__) -require "rails/test_help" - -Rails.backtrace_cleaner.remove_silencers! - -# Load support files -Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } - -# Load fixtures from the engine -if ActiveSupport::TestCase.method_defined?(:fixture_path=) - ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) -end diff --git a/test/translation_center_test.rb b/test/translation_center_test.rb deleted file mode 100644 index 9985b7a..0000000 --- a/test/translation_center_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class TranslationCenterTest < ActiveSupport::TestCase - test "truth" do - assert_kind_of Module, TranslationCenter - end -end diff --git a/test/unit/helpers/translation_center/categories_helper_test.rb b/test/unit/helpers/translation_center/categories_helper_test.rb deleted file mode 100644 index d64a61e..0000000 --- a/test/unit/helpers/translation_center/categories_helper_test.rb +++ /dev/null @@ -1,6 +0,0 @@ -require 'test_helper' - -module TranslationCenter - class CategoriesHelperTest < ActionView::TestCase - end -end diff --git a/test/unit/helpers/translation_center/center_helper_test.rb b/test/unit/helpers/translation_center/center_helper_test.rb deleted file mode 100644 index a82b647..0000000 --- a/test/unit/helpers/translation_center/center_helper_test.rb +++ /dev/null @@ -1,6 +0,0 @@ -require 'test_helper' - -module TranslationCenter - class CenterHelperTest < ActionView::TestCase - end -end diff --git a/test/unit/helpers/translation_center/translation_keys_helper_test.rb b/test/unit/helpers/translation_center/translation_keys_helper_test.rb deleted file mode 100644 index 25c9491..0000000 --- a/test/unit/helpers/translation_center/translation_keys_helper_test.rb +++ /dev/null @@ -1,6 +0,0 @@ -require 'test_helper' - -module TranslationCenter - class TranslationKeysHelperTest < ActionView::TestCase - end -end diff --git a/test/unit/helpers/translation_center/translations_helper_test.rb b/test/unit/helpers/translation_center/translations_helper_test.rb deleted file mode 100644 index 19f1478..0000000 --- a/test/unit/helpers/translation_center/translations_helper_test.rb +++ /dev/null @@ -1,6 +0,0 @@ -require 'test_helper' - -module TranslationCenter - class TranslationsHelperTest < ActionView::TestCase - end -end diff --git a/test/unit/translation_center/category_test.rb b/test/unit/translation_center/category_test.rb deleted file mode 100644 index 1998a7e..0000000 --- a/test/unit/translation_center/category_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'test_helper' - -module TranslationCenter - class CategoryTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end - end -end diff --git a/test/unit/translation_center/translation_key_test.rb b/test/unit/translation_center/translation_key_test.rb deleted file mode 100644 index 4e745dc..0000000 --- a/test/unit/translation_center/translation_key_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'test_helper' - -module TranslationCenter - class TranslationKeyTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end - end -end diff --git a/test/unit/translation_center/translation_test.rb b/test/unit/translation_center/translation_test.rb deleted file mode 100644 index 64f8dc1..0000000 --- a/test/unit/translation_center/translation_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'test_helper' - -module TranslationCenter - class TranslationTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end - end -end diff --git a/translation_center.gemspec b/translation_center.gemspec index 7eb53bf..f1eba15 100644 --- a/translation_center.gemspec +++ b/translation_center.gemspec @@ -15,8 +15,8 @@ Gem::Specification.new do |s| s.license = 'MIT' s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"] - s.test_files = Dir["test/**/*"] + s.test_files = Dir["spec/**/*"] # Development dependencies s.add_development_dependency 'sqlite3' @@ -25,6 +25,10 @@ Gem::Specification.new do |s| s.add_development_dependency 'better_errors' s.add_development_dependency 'binding_of_caller' + s.add_development_dependency 'rspec-rails' + s.add_development_dependency 'factory_girl_rails' + s.add_development_dependency 'database_cleaner' + # Dependencies s.add_dependency 'rails', '>= 3.1.0', '<= 3.2.12' From 9d953947d65024ed86e4cd129766731df9a025db Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Mon, 28 Apr 2014 17:13:36 +0200 Subject: [PATCH 04/16] #19 Adding some tests to translation model --- app/models/translation_center/translation.rb | 39 +- db/.DS_Store | Bin 0 -> 6148 bytes db/development.sqlite3 | Bin 0 -> 102400 bytes .../20130410082600_devise_create_users.rb | 0 db/migrate/20130410082601_create_articles.rb | 10 + ...02_create_translation_center_categories.rb | 9 + ...ate_translation_center_translation_keys.rb | 14 + ..._create_translation_center_translations.rb | 13 + ...0130410084605_acts_as_votable_migration.rb | 24 + db/migrate/20130410084606_install_audited.rb | 28 + ...tus_translation_center_translation_keys.rb | 5 + ...tus_translation_center_translation_keys.rb | 5 + ...506103609_fix_translation_user_relation.rb | 12 + db/migrate/20130801102610_add_indicies.rb | 8 + db/schema.rb | 110 + db/test.sqlite3 | 0 spec/dummy/config/translation_center.yml | 75 + spec/dummy/db/development.sqlite3 | Bin 20480 -> 102400 bytes ..._devise_create_users.translation_center.rb | 46 + ...2701_create_articles.translation_center.rb | 10 + ...on_center_categories.translation_center.rb | 9 + ...ter_translation_keys.translation_center.rb | 14 + ..._center_translations.translation_center.rb | 13 + ...as_votable_migration.translation_center.rb | 24 + ...4712_install_audited.translation_center.rb | 28 + ...ter_translation_keys.translation_center.rb | 5 + ...tus_translation_center_translation_keys.rb | 5 + ...lation_user_relation.translation_center.rb | 12 + ...1102021_add_indicies.translation_center.rb | 8 + spec/dummy/db/schema.rb | 111 + spec/dummy/db/test.sqlite3 | Bin 0 -> 102400 bytes spec/dummy/log/test.log | 2567 +++++++++++++++++ spec/factories/translation_factory.rb | 9 + spec/factories/translation_key_factory.rb | 5 + spec/factories/user_factory.rb | 10 + .../translation_center/translation_spec.rb | 53 +- spec/spec_helper.rb | 4 + 37 files changed, 3270 insertions(+), 15 deletions(-) create mode 100644 db/.DS_Store create mode 100644 db/development.sqlite3 rename spec/dummy/db/migrate/20140428094433_devise_create_users.rb => db/migrate/20130410082600_devise_create_users.rb (100%) create mode 100644 db/migrate/20130410082601_create_articles.rb create mode 100644 db/migrate/20130410084602_create_translation_center_categories.rb create mode 100644 db/migrate/20130410084603_create_translation_center_translation_keys.rb create mode 100644 db/migrate/20130410084604_create_translation_center_translations.rb create mode 100644 db/migrate/20130410084605_acts_as_votable_migration.rb create mode 100644 db/migrate/20130410084606_install_audited.rb create mode 100644 db/migrate/20130410113607_add_de_status_translation_center_translation_keys.rb create mode 100644 db/migrate/20130417134608_add_ar_status_translation_center_translation_keys.rb create mode 100644 db/migrate/20130506103609_fix_translation_user_relation.rb create mode 100644 db/migrate/20130801102610_add_indicies.rb create mode 100644 db/schema.rb create mode 100644 db/test.sqlite3 create mode 100644 spec/dummy/config/translation_center.yml create mode 100644 spec/dummy/db/migrate/20130410082611_devise_create_users.translation_center.rb create mode 100644 spec/dummy/db/migrate/20130410082701_create_articles.translation_center.rb create mode 100644 spec/dummy/db/migrate/20130410084702_create_translation_center_categories.translation_center.rb create mode 100644 spec/dummy/db/migrate/20130410084703_create_translation_center_translation_keys.translation_center.rb create mode 100644 spec/dummy/db/migrate/20130410084704_create_translation_center_translations.translation_center.rb create mode 100644 spec/dummy/db/migrate/20130410084711_acts_as_votable_migration.translation_center.rb create mode 100644 spec/dummy/db/migrate/20130410084712_install_audited.translation_center.rb create mode 100644 spec/dummy/db/migrate/20130410113113_add_de_status_translation_center_translation_keys.translation_center.rb create mode 100644 spec/dummy/db/migrate/20130417134534_add_ar_status_translation_center_translation_keys.rb create mode 100644 spec/dummy/db/migrate/20130506103956_fix_translation_user_relation.translation_center.rb create mode 100644 spec/dummy/db/migrate/20130801102021_add_indicies.translation_center.rb create mode 100644 spec/dummy/db/schema.rb create mode 100644 spec/factories/translation_factory.rb create mode 100644 spec/factories/translation_key_factory.rb create mode 100644 spec/factories/user_factory.rb diff --git a/app/models/translation_center/translation.rb b/app/models/translation_center/translation.rb index c9fc8f6..a428401 100644 --- a/app/models/translation_center/translation.rb +++ b/app/models/translation_center/translation.rb @@ -1,36 +1,47 @@ module TranslationCenter class Translation < ActiveRecord::Base - - attr_accessible :value, :lang, :translation_key_id, :user_id, :status - # serialize as we could store arrays - serialize :value - + # Constants CHANGES_PER_PAGE = 5 NUMBER_PER_PAGE = 15 + # Accessible attributes + attr_accessible :value, :lang, :translation_key_id, :user_id, :status + + # Relations belongs_to :translation_key belongs_to :translator, polymorphic: true - alias_method :key, :translation_key - acts_as_votable - audited - - # validations + # Validations validates :translation_key_id, :lang, :status, :value, presence: true validate :one_translation_per_lang_per_key, on: :create - # returns accepted transations + # Scopes + # Returns accepted transations scope :accepted, -> { where(status: 'accepted') } - # returns translations in a certain language + # Returns translations in a certain language scope :in, ->(lang) { where(lang: lang.to_s.strip) } - # sorts translations by number of votes - scope :sorted_by_votes, where('votable_type IS NULL OR votable_type = ?', 'TranslationCenter::Translation').select('translation_center_translations.*, count(votes.id) as votes_count').joins('LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id').group('translation_center_translations.id').order('votes_count desc') + # Sorts translations by number of votes + scope :sorted_by_votes, -> do + where('votable_type IS NULL OR votable_type = ?', 'TranslationCenter::Translation') + .select('translation_center_translations.*, count(votes.id) as votes_count') + .joins('LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id') + .group('translation_center_translations.id') + .order('votes_count desc') + end + # Callbacks after_save :update_key_status after_destroy :notify_key + alias_method :key, :translation_key + acts_as_votable + audited + + # Serialize as we could store arrays + serialize :value + # called after save to update the key status def update_key_status self.key.update_status self.lang diff --git a/db/.DS_Store b/db/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..d89eec01164abb2e0ced494b2cea57332efc8a06 GIT binary patch literal 6148 zcmeHK%Sr=55Uh>?BYFsU@i<3M0r3Zx5D#AUE}91#*tlw<=lwuGz`xPz=~lAq;!#Ap zp{IIgx@Knzb{+s^{5(Gah5!b1MbV(cw7IjZ=gEDdW4oLBFv#bY%r6bJ=Eflwe6*iwLJw%TCdFv?IM6bJ>r6wv)4 z(G?5F+Awb&Eb&hb-DhZKfUh615LQ-K|;4)y#$<1f?s$Zt}j77By{|4aetPcA28F3Qi=Z_CrO wHqo!?YMNJTKx5pv1hAs}$WiXJ{-iPU3dh<|N7437C&on}3lc>r@Cyoj04DoKZvX%Q literal 0 HcmV?d00001 diff --git a/db/development.sqlite3 b/db/development.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..16c09bd789debf5b2ff7429d5680f42e24727394 GIT binary patch literal 102400 zcmeI5&u<&Y700>ywfepE&yCWg*|II9g`J3$tRzM1ri#rNs$|*Gk0xpli#0isw8A-}~U(+&~%rw1b=+*ks=)+L!3;ivH zK6m>#oq74+-x}tXl`nanOUjo+cSn9S@)!Asqu(COjsJ3TWa{;)e@@qw1!+C=xir_U zp)<*y%d&c9MrzDjcA0%(*2|V}-m5U9^VJ)^@gaGO>+N4;+qZxuJRyBjOF zmp68_)#8q}yuEd2Wu3Hc7uUD6^*i+1UR#TF%2h4fXS>Xe$b~W5zUh|ko9^7g(vr@L zJ;s>y-Dj>R z>NowE!Is#RwDiN;)3b$n)+<+95>YAZ&dbjjRcqHZxxHROFc6JnqMWBm+xV~n?GWk>c|caLQ=ju95$m?KS7%0| zrG#Lx+4c7N$~)Wbl<;s-*Z5Ubj`-a!*V(wNE~!#u zLL|9(Gep!4$2LR|#kYynq)w|IBy>A*f;`Y0=O<)!llr-p)=w-5U-*f3nH%Z1aSnhdK8<}#b{ubXyEr44V0}3QjDVp1>Ud6X4KB8OXF8F zC0Kcu6nX?+Q)G2@RXTk41i+7h?PX5`THNEEdO~XXPPYpNg+GRM->lS=*Jp+9b`s+; zADCj=M{}<+yKLFJPXPIRR?OOm*9G!@x{LC}+qoz{Av;qhl4fx09l2#~NmFknd1rAR zfvjtFDIaxJn+Sv?EJG?iKPjB?0>8)Yf z<@Q%@x2SWziM6@v2xhyJXa}>8sL8|7>4&dITHgd7y>a2ZtnQG7H@a9T;I{0eFKz2C z9A{mcX40}Cc+DUL&FA#Sn-^sDAzAg&DXeN68H7@}fAK6v#u_@A&CxW{8><&(^k^#%4fm2fB*=900@8p2!H?xfB*=900=zw1kMlYQgqQj*%q}|{S$3bd)Yr8 z5;fQTV_{LS@E=Wx3UXYOzc!K(Ee;I=azVHqNKmY_l00ck)1V8`;KmY_l z00cOJsi_w-W5aWqkuPOi{_p4y#<#}*G;w$GrQx~hpO00?e><@}@sG)0PwgttD?jUn z7>-%PF>5$xjm~>Z9>dn#X-PO{?f-Jj+T**yDPW(-CpeUf9|LvF!BnCOP66wBd>|cD zQ>K%fPIc^<>7GUbCx7DPPYqKNrX+Fjb8rNkI2x26;Ffxu zJoz(|8TbMxf1YXz?(JTdj*0hh@@H_G`_Z>PPweDRJpb?Iw;Ip|0T2KI5C8!X009sH z0T2KI5CDPxAb|h>uRr1hD?tDRKmY_l00ck)1V8`;KmY_lpcevo{@)8d=z;(UfB*=9 z00@8p2!H?xfB*=9Kz|Ux`oBNo1S>%R1V8`;KmY_l00ck)1V8`;K%f@_*#F-PJ?Me} z2!H?xfB*=900@8p2!H?xfIxo`!1}*G;sh%}00ck)1V8`;KmY_l00ck)1VEq{0$Bg| zLJzti00JNY0w4eaAOHd&00JNY0wB;I1hD?^k2t|f5C8!X009sH0T2KI5C8!X009u_ zg#gz7z0iX$2!H?xfB*=900@8p2!H?xfB*>e2Lb&5|NRjsSP23k00JNY0w4eaAOHd& z00JNY0=*Ex`o9-?&;8+Hli!^hpZ>G*it^d$Z{(qoSB9@o*OZ0H zzfX@$|6cjtS$o=(WOaUCYMk@UdllxD?z5_CRIOdt^exBs5`uvn8^z_VqPDgC)>=`^ zCCYQ!TyCGa9x3OvebX)7H{H2~r6pZkzq6&SZ?CQC4S7ITuT!7%mR)8a)NO08&WuD$ z3Bh2q>+SWGceab#%KFXXds?oWdQQ8uevEzkt)OLg7=}QpMj7& zXO(l*^;Yp#aYMViv2uHPV@F#p?r6)~TX$C0N$YlTog8gCdsWK`RSwtSs+R4uUFJsQ z{-YX;!s5lA=aekdXXUtFryy0a?lCu}B1By)+h#ST`x1|T(khOKOro&byUfdJKKsBY zYuh1j`lsD2zP-G?wx#8%u;f&$%=QzFxvc8=%rMJkmwD7yI9*8XnNH2SLnG>yE7DGI zS?*Pcy5TXpQ0x-(qF;w2sTwPsJbQ(IW zN;Hh^JeZvgUlZho`>4hfsYZGJ&~fR?2uHt*8l?&I+bV|dJYdNb6_pzH3!`dda8){( z5rd3)Gkn*yy^0vwj1pxeT__=uXE=8FyYYZMq6;ZhBTZ?hNv}B^_0Ul;Vja^R4@|g9 zU}H{iY<^8volU8+cVd6Jf5K;;BH=cZXhhZLPVZ@?i<9^#6u6IKP|_b?eqL5rSEZkR zQ{?Q?Mta8-XQO$3OzksW0pT{AkqM3X`(~w{9BC^wl18(i#=cfVPJAf$eABPT#>&ps zQe$@6vUg|spzAU*d6+crmg$pkRay8Ftk<}-Y;-FRS&*DL^t~BbU7nE|mqOVV%#r*e z>hvAR)U?b=s~)6CP{ISyX(*>3%xA^;b$DIm!ahwMo_ISKjjNEIDSD)tGEcXpNeV=n zcNPy(AnRJ)c)wy&!0$Oug_(A<4Z8htQf>l5{+~XGdgG;YvTCYQV>1*bZk@R5TYg!T z19sVHedTtGI_J}Zb`tF%h@vJBL#tuB`w5&Cj0GOOapAnI?vRByx>zXSw(R4>b<4U7 z$61%AnY1hjUOSLYtKPgIs}ISlk4|A#+sGi4!u^Y9F*4TB$!w0Mk=|InD61c<(!o?0 z51M)2>Z=`+mVn=nQ$h+aE+6N`2^&j#(o{_3Ma-MW`AfJ>cfYE)>1kt>?p&7DD>OgM ziu@A;dJt^B;tR(2k!V`Q>IBKsnF&J0VjSsw53X5HmDQK2!rX3t^Y5P)noJ;rI$>v5qb^L3qK$L0w4eaAOHf-B7w$-Q?h#N zmUKY-0%(g_>!Ceu-D>SsDbZ8@UB|Up+V+S};dJw1MRQ-@kqw>c;d<)htF&iFC*Gu> zAK25fy16MG-st9h*bTnhCH%e1E*Irk5aC96qfZb=5G%gxD7;g!VtT$|mT2Rb$EcvS zn}eQ`GTS(MLrC3jS!;Gr*&IUe%00@8p2!H?xfB*=900@8p2!Oyd iK>+LjXClmS5(Gd11V8`;KmY_l00ck)1VG>!C-6UmGT%P{ literal 0 HcmV?d00001 diff --git a/spec/dummy/db/migrate/20140428094433_devise_create_users.rb b/db/migrate/20130410082600_devise_create_users.rb similarity index 100% rename from spec/dummy/db/migrate/20140428094433_devise_create_users.rb rename to db/migrate/20130410082600_devise_create_users.rb diff --git a/db/migrate/20130410082601_create_articles.rb b/db/migrate/20130410082601_create_articles.rb new file mode 100644 index 0000000..1418a21 --- /dev/null +++ b/db/migrate/20130410082601_create_articles.rb @@ -0,0 +1,10 @@ +class CreateArticles < ActiveRecord::Migration + def change + create_table :articles do |t| + t.string :title + t.text :content + + t.timestamps + end + end +end diff --git a/db/migrate/20130410084602_create_translation_center_categories.rb b/db/migrate/20130410084602_create_translation_center_categories.rb new file mode 100644 index 0000000..73fd4fd --- /dev/null +++ b/db/migrate/20130410084602_create_translation_center_categories.rb @@ -0,0 +1,9 @@ +class CreateTranslationCenterCategories < ActiveRecord::Migration + def change + create_table :translation_center_categories do |t| + t.string :name + + t.timestamps + end + end +end diff --git a/db/migrate/20130410084603_create_translation_center_translation_keys.rb b/db/migrate/20130410084603_create_translation_center_translation_keys.rb new file mode 100644 index 0000000..4109db6 --- /dev/null +++ b/db/migrate/20130410084603_create_translation_center_translation_keys.rb @@ -0,0 +1,14 @@ +class CreateTranslationCenterTranslationKeys < ActiveRecord::Migration + def change + create_table :translation_center_translation_keys do |t| + t.string :name + t.integer :category_id + t.datetime :last_accessed + + t.string :en_status, default: 'untranslated' + + + t.timestamps + end + end +end diff --git a/db/migrate/20130410084604_create_translation_center_translations.rb b/db/migrate/20130410084604_create_translation_center_translations.rb new file mode 100644 index 0000000..de0c038 --- /dev/null +++ b/db/migrate/20130410084604_create_translation_center_translations.rb @@ -0,0 +1,13 @@ +class CreateTranslationCenterTranslations < ActiveRecord::Migration + def change + create_table :translation_center_translations do |t| + t.integer :translation_key_id + t.string :value + t.string :lang + t.integer :user_id + t.string :status, default: 'pending' + + t.timestamps + end + end +end diff --git a/db/migrate/20130410084605_acts_as_votable_migration.rb b/db/migrate/20130410084605_acts_as_votable_migration.rb new file mode 100644 index 0000000..ad089d5 --- /dev/null +++ b/db/migrate/20130410084605_acts_as_votable_migration.rb @@ -0,0 +1,24 @@ +class ActsAsVotableMigration < ActiveRecord::Migration + def self.up + create_table :votes do |t| + + t.references :votable, :polymorphic => true + t.references :voter, :polymorphic => true + + t.boolean :vote_flag + t.string :vote_scope + t.integer :vote_weight + + t.timestamps + end + + add_index :votes, [:votable_id, :votable_type] + add_index :votes, [:voter_id, :voter_type] + add_index :votes, [:voter_id, :voter_type, :vote_scope] + add_index :votes, [:votable_id, :votable_type, :vote_scope] + end + + def self.down + drop_table :votes + end +end diff --git a/db/migrate/20130410084606_install_audited.rb b/db/migrate/20130410084606_install_audited.rb new file mode 100644 index 0000000..fb2a927 --- /dev/null +++ b/db/migrate/20130410084606_install_audited.rb @@ -0,0 +1,28 @@ +class InstallAudited < ActiveRecord::Migration + def self.up + create_table :audits, :force => true do |t| + t.column :auditable_id, :integer + t.column :auditable_type, :string + t.column :associated_id, :integer + t.column :associated_type, :string + t.column :user_id, :integer + t.column :user_type, :string + t.column :username, :string + t.column :action, :string + t.column :audited_changes, :text + t.column :version, :integer, :default => 0 + t.column :comment, :string + t.column :remote_address, :string + t.column :created_at, :datetime + end + + add_index :audits, [:auditable_id, :auditable_type], :name => 'auditable_index' + add_index :audits, [:associated_id, :associated_type], :name => 'associated_index' + add_index :audits, [:user_id, :user_type], :name => 'user_index' + add_index :audits, :created_at + end + + def self.down + drop_table :audits + end +end diff --git a/db/migrate/20130410113607_add_de_status_translation_center_translation_keys.rb b/db/migrate/20130410113607_add_de_status_translation_center_translation_keys.rb new file mode 100644 index 0000000..4ff50be --- /dev/null +++ b/db/migrate/20130410113607_add_de_status_translation_center_translation_keys.rb @@ -0,0 +1,5 @@ +class AddDeStatusTranslationCenterTranslationKeys < ActiveRecord::Migration + def change + add_column :translation_center_translation_keys, :de_status, :string, default: 'untranslated' + end +end diff --git a/db/migrate/20130417134608_add_ar_status_translation_center_translation_keys.rb b/db/migrate/20130417134608_add_ar_status_translation_center_translation_keys.rb new file mode 100644 index 0000000..291b852 --- /dev/null +++ b/db/migrate/20130417134608_add_ar_status_translation_center_translation_keys.rb @@ -0,0 +1,5 @@ +class AddArStatusTranslationCenterTranslationKeys < ActiveRecord::Migration + def change + add_column :translation_center_translation_keys, :ar_status, :string, default: 'untranslated' + end +end diff --git a/db/migrate/20130506103609_fix_translation_user_relation.rb b/db/migrate/20130506103609_fix_translation_user_relation.rb new file mode 100644 index 0000000..ea88cbb --- /dev/null +++ b/db/migrate/20130506103609_fix_translation_user_relation.rb @@ -0,0 +1,12 @@ +class FixTranslationUserRelation < ActiveRecord::Migration + def up + rename_column :translation_center_translations, :user_id, :translator_id + add_column :translation_center_translations, :translator_type, :string + TranslationCenter::Translation.update_all(translator_type: 'User') + end + + def down + rename_column :translation_center_translations, :translator_id, :user_id + remove_column :translation_center_translations, :translator_type + end +end diff --git a/db/migrate/20130801102610_add_indicies.rb b/db/migrate/20130801102610_add_indicies.rb new file mode 100644 index 0000000..c319f59 --- /dev/null +++ b/db/migrate/20130801102610_add_indicies.rb @@ -0,0 +1,8 @@ +class AddIndicies < ActiveRecord::Migration + + def change + add_index :translation_center_translation_keys, :name + add_index :translation_center_translations, :translation_key_id + end + +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 0000000..bd08f41 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,110 @@ +# encoding: UTF-8 +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended to check this file into your version control system. + +ActiveRecord::Schema.define(:version => 20130801102021) do + + create_table "articles", :force => true do |t| + t.string "title" + t.text "content" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + create_table "audits", :force => true do |t| + t.integer "auditable_id" + t.string "auditable_type" + t.integer "associated_id" + t.string "associated_type" + t.integer "user_id" + t.string "user_type" + t.string "username" + t.string "action" + t.text "audited_changes" + t.integer "version", :default => 0 + t.string "comment" + t.string "remote_address" + t.datetime "created_at" + end + + add_index "audits", ["associated_id", "associated_type"], :name => "associated_index" + add_index "audits", ["auditable_id", "auditable_type"], :name => "auditable_index" + add_index "audits", ["created_at"], :name => "index_audits_on_created_at" + add_index "audits", ["user_id", "user_type"], :name => "user_index" + + create_table "translation_center_categories", :force => true do |t| + t.string "name" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + create_table "translation_center_translation_keys", :force => true do |t| + t.string "name" + t.integer "category_id" + t.datetime "last_accessed" + t.string "en_status", :default => "untranslated" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + t.string "de_status", :default => "untranslated" + t.string "ar_status", :default => "untranslated" + end + + add_index "translation_center_translation_keys", ["name"], :name => "index_translation_center_translation_keys_on_name" + + create_table "translation_center_translations", :force => true do |t| + t.integer "translation_key_id" + t.string "value" + t.string "lang" + t.integer "translator_id" + t.string "status", :default => "pending" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + t.string "translator_type" + end + + add_index "translation_center_translations", ["translation_key_id"], :name => "index_translation_center_translations_on_translation_key_id" + + create_table "users", :force => true do |t| + t.string "email", :default => "", :null => false + t.string "encrypted_password", :default => "", :null => false + t.string "reset_password_token" + t.datetime "reset_password_sent_at" + t.datetime "remember_created_at" + t.integer "sign_in_count", :default => 0 + t.datetime "current_sign_in_at" + t.datetime "last_sign_in_at" + t.string "current_sign_in_ip" + t.string "last_sign_in_ip" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + add_index "users", ["email"], :name => "index_users_on_email", :unique => true + add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true + + create_table "votes", :force => true do |t| + t.integer "votable_id" + t.string "votable_type" + t.integer "voter_id" + t.string "voter_type" + t.boolean "vote_flag" + t.string "vote_scope" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + add_index "votes", ["votable_id", "votable_type", "vote_scope"], :name => "index_votes_on_votable_id_and_votable_type_and_vote_scope" + add_index "votes", ["votable_id", "votable_type"], :name => "index_votes_on_votable_id_and_votable_type" + add_index "votes", ["voter_id", "voter_type", "vote_scope"], :name => "index_votes_on_voter_id_and_voter_type_and_vote_scope" + add_index "votes", ["voter_id", "voter_type"], :name => "index_votes_on_voter_id_and_voter_type" + +end diff --git a/db/test.sqlite3 b/db/test.sqlite3 new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/config/translation_center.yml b/spec/dummy/config/translation_center.yml new file mode 100644 index 0000000..1ddf745 --- /dev/null +++ b/spec/dummy/config/translation_center.yml @@ -0,0 +1,75 @@ +common_atts: &common_atts + # what language to support and their display names + lang: + en: + name: 'English' + direction: 'ltr' + de: + name: 'Deutch' + direction: 'ltr' + ar: + name: 'Arabic' + direction: 'rtl' + + # yaml imported translations created by translator email, usually User email + yaml_translator_identifier: 'user@example.com' + + # when import translation from yaml to db set it to accepted by default + yaml2db_translations_accepted: true # default is false + + # when admins add/edit translations they are considered accepted directly + accept_admin_translations: true + + # identifier_type: 'email' # Uncomment and change the identifier if your User model has no email attribute + # translator_type: 'User' # Uncomment and change if you want to change the translator type + +development: + enabled: true # default false + + # Keys inspector allowed values: + # "missing" to inspect only untranslated keys + # "all" to enable inspector for translated and untranslated keys + # "off" to turn off keys inspector + inspector: 'all' # default missing + + # I18n.translate source + i18n_source: 'yaml' # can be db or yaml; default is db + + # when a new key is added to db, the value of the key is added as the default translation in English + save_default_translation: true + + <<: *common_atts + +test: + enabled: true # default false + + # Keys inspector allowed values: + # "missing" to inspect only untranslated keys + # "all" to enable inspector for translated and untranslated keys + # "off" to turn off keys inspector + inspector: 'all' # default missing + + # I18n.translate source + i18n_source: 'yaml' # can be db or yaml; default is db + + # when a new key is added to db, the value of the key is added as the default translation in English + save_default_translation: true + + <<: *common_atts + +production: + enabled: true # default false + + # Keys inspector allowed values: + # "missing" to inspect only untranslated keys + # "all" to enable inspector for translated and untranslated keys + # "off" to turn off keys inspector + inspector: 'off' # default missing + + # I18n.translate source + i18n_source: 'yaml' # can be db or yaml; default is yaml + + # when a new key is added to db, the value of the key is added as the default translation in English + save_default_translation: false + + <<: *common_atts \ No newline at end of file diff --git a/spec/dummy/db/development.sqlite3 b/spec/dummy/db/development.sqlite3 index 25a6bc5680283459db9ddfc1636bb46829967795..ef17af77c4775e787eee08f2357af6f0e500a5dc 100644 GIT binary patch literal 102400 zcmeI4-*4O26~{&YqAl5>oV4X!EGVZ9vx&5eY{yNvuISuEF$_CS>K|>50V5dcRv{vh zGD$f!bvg^95ENAi=LCAbZQ8Jm#4E>*@|KZQe^kyvl zK);2^`(AHnGOzvZYvW#J>8V%eCF$w(ucp6~`*rrSslQH|6Hmu~GoBxNH2Uet--WB0 zKlEy*pWK=iL)|`amfp>J*e)TY=Ci zC=1czO5xRLb@yR|71YPYyeQAj2~XbS9r4y2|8+L#Xm|CU%~G^Yqf(&WcS~!fZRPg% z`pwntePyGxudMFv-df)xt(&E-U1jSQ{omW%jCJa%8m7yt%#O*qG0LHCm+$KK!qUo$ z>J>YVRW@{&RkVa&ryy0a=`cH?!bLqRn|hrUy1FmBhGlk(y+I+9$WpV)2(rr_xMb}i zvmIVP@K3p3y0N;qxvLbZux!=q%yhdNvsvA8nWk4NHgl-01c9>6xcfS3R_L8;)S24a zkVN@oSvZ>EQNdrdLu$s+EYo}AM@&W2%}V>D=Xxk$np3tKjH~41(RAv@{J7&ydSTbG z!V9|a6X)-L4s0l>t+&sK@_kuoebmDnK9p_KZLOClQa?`yXsFu@Kac{O{muiAIv!k@ z5#@dI;Mxg1;H1u-#^k|lR9ml1i?U8u?ews!SCnweX8KvyOS{{;pk`Mbs7E()qAbh8 z@jV`~ykGt@9dsTnJY41l)rr>~(hPf#tU94Ibv5uhORgQhtY>xY!^~ zWmL7}sdA?OGmF)_KR(-DYATZLh@h z4Q5shvpP?M^qk1eDN)|p5st47fLtRd`(Wo)vL`{$HBN;;b+ao|d{r$wIT$tFaW%bM zrp<}b)*bFa#E+TUvspLIaGY7?`GL0{O^Wi`ns7v&(t#*!Iuhf72L?++-6@>v3%OJG z3&fkUk+&x>(R}spb7&X`P>-$wOPyT4ZbT<}yFP&_Rf~T7wRM_bt1kxz;^q@ajS=x6x1PyiIN;e;JGE7ux=xcpDAeiJnb6OX_?y zjL8f8VZ+<0!tsl***(-!MPFS(X9A~7Fq#_Ez101Y8(JrG3sG8r=Khk0KMM&hCR%*JDJ z!Qs%Q`h~1_$ z38^j9zr5Iy6yLaVb#W;_k&rCr$K#UXmHb#jvYa1HNS5*=QOVNP;$mKiNnT%E%+e_4 zq@s8K|BLiT>9^9)r5{V*mkjAW=^Bag0|Fob0w4eaAOHd&00JNY0w4eaXOh7AQB{cF z`g3hj``Vvvi`w`8sfZ}J_)kVf{>@+P5-m<7Ma3)QU83c&F459xT;yHY0T2KI5C8!X009sH0T2KI5C8!X7=8ly`~Sl~ z#_$jXKmY_l00ck)1V8`;KmY_l00eOVM+|@f2!H?xfB*=900@8p2!H?xfWYt*!2N&t z#~2=h00@8p2!H?xfB*=900@8p2!H_Y|A+w)009sH0T2KI5C8!X009sH0T38|0{HuX z!#~FG5ClK~1V8`;KmY_l00ck)1V8`;@cbV!00JNY0w4eaAOHd&00JNY0w4ea!%qPB z|KT5FcnAU@00JNY0w4eaAOHd&00JNY0y8sT&P64 z{b=gF?9Xzmxj#?;bfzl3Ed6jGS_gtCU%o7~W?lVGjXCAJtgdTyqiXA}VVO>sVC33% zX?3@x?5@7ESyBpJuvU z#P!mR)xFJKWqv+Z(=6K$8!oG84c&3>TQ+qS^RsB2mdBO6A&)9jI#{m^qnfIn|%EWI^5GsG>1fuc^ z&6pE)sM{w|P_a{Cr@~H!or<6O5*uXdHpCBr?fo*f%KyMlWzlZrov2*)z!w;fPjZI?jg+JRQcvZLjR_BL+*`@H&N4eYd(!-7j#Hd!8*w&16PC_xAkbYrUM0 z^1z<|+|icF2#&n5AsoLy0PwVUi;Rbp>l<;=+NX-SNCO%Tf8r>0sMng^=dPM=R^ulq z?}b1VG>n6KI+8q}&?a5RT>| zSrO5%f4iUXJ6>K!w2J=?aa59`G#7kp9V8?9kEQzPq<7>eR`gNzzV?n*3BJWvTRSg_ zvb7_$4hHtu`v#o*?4=t-+wAs|SN+n-J&koSh<{wc^O2`OsE=QIQS_cK{NSr+?D;}C z9M*s5DFZ#>h*;o0Y$P6ws0S~I^6H$>dNC4hdb47B)&{ei=4FTeu(%bUKDg1 zDyT;{ay(V<*iR`sv|Q%!m+AO(BQ87D(;?FIo|z_|>x9y73Pj24EICBJtY>xY!gQNyuT*eP&eeb~5fr9Kq5~_!&4+M{T__Ey_A2jO|1Q&oi2jUFfbs ziE?H|3qN}9@H#VTV>yVnKeoK4H#%X%l+ENj%F%ObYU{#`DDRVn*LqmUnTPgysa&CT z=lWTfrrB+oKc>L|_{|s8*4yVq`94|o(Fv?-8|jZQcV9Y_O+Ib?Rl|Rs z4QvZ?lsgN`iPLwvYG_a-?XDwFo#>RnYn2V2ZW>S5ixi|PraV~YqMnsga|QLXm%H8d z)S4Sj8L*U+ZB`lO1qLZ6?R4$bq+Y9D=lLnoTx1#wo7HK}(DX`$5^EAUhE$xkMyb}U zC|{y&W1h!fhhgWVb3Ptci8_9;a3OWMP>2-sb)@r|15=&zqWl_l_?q8CWK_JwbHAMn zi5?S`y1I;%`+ar0a2*6d z00ck)1V8`;KmY_l00cnb><~cy|JfO9cnSg_00JNY0w4eaAOHd&00JOzb_wAAe|Ev0c7h7uVKiYziz%Ov*{kt&C62OV7+pjW0 false, :default => "" + t.string :encrypted_password, :null => false, :default => "" + + ## Recoverable + t.string :reset_password_token + t.datetime :reset_password_sent_at + + ## Rememberable + t.datetime :remember_created_at + + ## Trackable + t.integer :sign_in_count, :default => 0 + t.datetime :current_sign_in_at + t.datetime :last_sign_in_at + t.string :current_sign_in_ip + t.string :last_sign_in_ip + + ## Confirmable + # t.string :confirmation_token + # t.datetime :confirmed_at + # t.datetime :confirmation_sent_at + # t.string :unconfirmed_email # Only if using reconfirmable + + ## Lockable + # t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts + # t.string :unlock_token # Only if unlock strategy is :email or :both + # t.datetime :locked_at + + ## Token authenticatable + # t.string :authentication_token + + + t.timestamps + end + + add_index :users, :email, :unique => true + add_index :users, :reset_password_token, :unique => true + # add_index :users, :confirmation_token, :unique => true + # add_index :users, :unlock_token, :unique => true + # add_index :users, :authentication_token, :unique => true + end +end diff --git a/spec/dummy/db/migrate/20130410082701_create_articles.translation_center.rb b/spec/dummy/db/migrate/20130410082701_create_articles.translation_center.rb new file mode 100644 index 0000000..1418a21 --- /dev/null +++ b/spec/dummy/db/migrate/20130410082701_create_articles.translation_center.rb @@ -0,0 +1,10 @@ +class CreateArticles < ActiveRecord::Migration + def change + create_table :articles do |t| + t.string :title + t.text :content + + t.timestamps + end + end +end diff --git a/spec/dummy/db/migrate/20130410084702_create_translation_center_categories.translation_center.rb b/spec/dummy/db/migrate/20130410084702_create_translation_center_categories.translation_center.rb new file mode 100644 index 0000000..73fd4fd --- /dev/null +++ b/spec/dummy/db/migrate/20130410084702_create_translation_center_categories.translation_center.rb @@ -0,0 +1,9 @@ +class CreateTranslationCenterCategories < ActiveRecord::Migration + def change + create_table :translation_center_categories do |t| + t.string :name + + t.timestamps + end + end +end diff --git a/spec/dummy/db/migrate/20130410084703_create_translation_center_translation_keys.translation_center.rb b/spec/dummy/db/migrate/20130410084703_create_translation_center_translation_keys.translation_center.rb new file mode 100644 index 0000000..4109db6 --- /dev/null +++ b/spec/dummy/db/migrate/20130410084703_create_translation_center_translation_keys.translation_center.rb @@ -0,0 +1,14 @@ +class CreateTranslationCenterTranslationKeys < ActiveRecord::Migration + def change + create_table :translation_center_translation_keys do |t| + t.string :name + t.integer :category_id + t.datetime :last_accessed + + t.string :en_status, default: 'untranslated' + + + t.timestamps + end + end +end diff --git a/spec/dummy/db/migrate/20130410084704_create_translation_center_translations.translation_center.rb b/spec/dummy/db/migrate/20130410084704_create_translation_center_translations.translation_center.rb new file mode 100644 index 0000000..de0c038 --- /dev/null +++ b/spec/dummy/db/migrate/20130410084704_create_translation_center_translations.translation_center.rb @@ -0,0 +1,13 @@ +class CreateTranslationCenterTranslations < ActiveRecord::Migration + def change + create_table :translation_center_translations do |t| + t.integer :translation_key_id + t.string :value + t.string :lang + t.integer :user_id + t.string :status, default: 'pending' + + t.timestamps + end + end +end diff --git a/spec/dummy/db/migrate/20130410084711_acts_as_votable_migration.translation_center.rb b/spec/dummy/db/migrate/20130410084711_acts_as_votable_migration.translation_center.rb new file mode 100644 index 0000000..ad089d5 --- /dev/null +++ b/spec/dummy/db/migrate/20130410084711_acts_as_votable_migration.translation_center.rb @@ -0,0 +1,24 @@ +class ActsAsVotableMigration < ActiveRecord::Migration + def self.up + create_table :votes do |t| + + t.references :votable, :polymorphic => true + t.references :voter, :polymorphic => true + + t.boolean :vote_flag + t.string :vote_scope + t.integer :vote_weight + + t.timestamps + end + + add_index :votes, [:votable_id, :votable_type] + add_index :votes, [:voter_id, :voter_type] + add_index :votes, [:voter_id, :voter_type, :vote_scope] + add_index :votes, [:votable_id, :votable_type, :vote_scope] + end + + def self.down + drop_table :votes + end +end diff --git a/spec/dummy/db/migrate/20130410084712_install_audited.translation_center.rb b/spec/dummy/db/migrate/20130410084712_install_audited.translation_center.rb new file mode 100644 index 0000000..fb2a927 --- /dev/null +++ b/spec/dummy/db/migrate/20130410084712_install_audited.translation_center.rb @@ -0,0 +1,28 @@ +class InstallAudited < ActiveRecord::Migration + def self.up + create_table :audits, :force => true do |t| + t.column :auditable_id, :integer + t.column :auditable_type, :string + t.column :associated_id, :integer + t.column :associated_type, :string + t.column :user_id, :integer + t.column :user_type, :string + t.column :username, :string + t.column :action, :string + t.column :audited_changes, :text + t.column :version, :integer, :default => 0 + t.column :comment, :string + t.column :remote_address, :string + t.column :created_at, :datetime + end + + add_index :audits, [:auditable_id, :auditable_type], :name => 'auditable_index' + add_index :audits, [:associated_id, :associated_type], :name => 'associated_index' + add_index :audits, [:user_id, :user_type], :name => 'user_index' + add_index :audits, :created_at + end + + def self.down + drop_table :audits + end +end diff --git a/spec/dummy/db/migrate/20130410113113_add_de_status_translation_center_translation_keys.translation_center.rb b/spec/dummy/db/migrate/20130410113113_add_de_status_translation_center_translation_keys.translation_center.rb new file mode 100644 index 0000000..4ff50be --- /dev/null +++ b/spec/dummy/db/migrate/20130410113113_add_de_status_translation_center_translation_keys.translation_center.rb @@ -0,0 +1,5 @@ +class AddDeStatusTranslationCenterTranslationKeys < ActiveRecord::Migration + def change + add_column :translation_center_translation_keys, :de_status, :string, default: 'untranslated' + end +end diff --git a/spec/dummy/db/migrate/20130417134534_add_ar_status_translation_center_translation_keys.rb b/spec/dummy/db/migrate/20130417134534_add_ar_status_translation_center_translation_keys.rb new file mode 100644 index 0000000..291b852 --- /dev/null +++ b/spec/dummy/db/migrate/20130417134534_add_ar_status_translation_center_translation_keys.rb @@ -0,0 +1,5 @@ +class AddArStatusTranslationCenterTranslationKeys < ActiveRecord::Migration + def change + add_column :translation_center_translation_keys, :ar_status, :string, default: 'untranslated' + end +end diff --git a/spec/dummy/db/migrate/20130506103956_fix_translation_user_relation.translation_center.rb b/spec/dummy/db/migrate/20130506103956_fix_translation_user_relation.translation_center.rb new file mode 100644 index 0000000..ea88cbb --- /dev/null +++ b/spec/dummy/db/migrate/20130506103956_fix_translation_user_relation.translation_center.rb @@ -0,0 +1,12 @@ +class FixTranslationUserRelation < ActiveRecord::Migration + def up + rename_column :translation_center_translations, :user_id, :translator_id + add_column :translation_center_translations, :translator_type, :string + TranslationCenter::Translation.update_all(translator_type: 'User') + end + + def down + rename_column :translation_center_translations, :translator_id, :user_id + remove_column :translation_center_translations, :translator_type + end +end diff --git a/spec/dummy/db/migrate/20130801102021_add_indicies.translation_center.rb b/spec/dummy/db/migrate/20130801102021_add_indicies.translation_center.rb new file mode 100644 index 0000000..c319f59 --- /dev/null +++ b/spec/dummy/db/migrate/20130801102021_add_indicies.translation_center.rb @@ -0,0 +1,8 @@ +class AddIndicies < ActiveRecord::Migration + + def change + add_index :translation_center_translation_keys, :name + add_index :translation_center_translations, :translation_key_id + end + +end diff --git a/spec/dummy/db/schema.rb b/spec/dummy/db/schema.rb new file mode 100644 index 0000000..f03aca5 --- /dev/null +++ b/spec/dummy/db/schema.rb @@ -0,0 +1,111 @@ +# encoding: UTF-8 +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended to check this file into your version control system. + +ActiveRecord::Schema.define(:version => 20130801102021) do + + create_table "articles", :force => true do |t| + t.string "title" + t.text "content" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + create_table "audits", :force => true do |t| + t.integer "auditable_id" + t.string "auditable_type" + t.integer "associated_id" + t.string "associated_type" + t.integer "user_id" + t.string "user_type" + t.string "username" + t.string "action" + t.text "audited_changes" + t.integer "version", :default => 0 + t.string "comment" + t.string "remote_address" + t.datetime "created_at" + end + + add_index "audits", ["associated_id", "associated_type"], :name => "associated_index" + add_index "audits", ["auditable_id", "auditable_type"], :name => "auditable_index" + add_index "audits", ["created_at"], :name => "index_audits_on_created_at" + add_index "audits", ["user_id", "user_type"], :name => "user_index" + + create_table "translation_center_categories", :force => true do |t| + t.string "name" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + create_table "translation_center_translation_keys", :force => true do |t| + t.string "name" + t.integer "category_id" + t.datetime "last_accessed" + t.string "en_status", :default => "untranslated" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + t.string "de_status", :default => "untranslated" + t.string "ar_status", :default => "untranslated" + end + + add_index "translation_center_translation_keys", ["name"], :name => "index_translation_center_translation_keys_on_name" + + create_table "translation_center_translations", :force => true do |t| + t.integer "translation_key_id" + t.string "value" + t.string "lang" + t.integer "translator_id" + t.string "status", :default => "pending" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + t.string "translator_type" + end + + add_index "translation_center_translations", ["translation_key_id"], :name => "index_translation_center_translations_on_translation_key_id" + + create_table "users", :force => true do |t| + t.string "email", :default => "", :null => false + t.string "encrypted_password", :default => "", :null => false + t.string "reset_password_token" + t.datetime "reset_password_sent_at" + t.datetime "remember_created_at" + t.integer "sign_in_count", :default => 0 + t.datetime "current_sign_in_at" + t.datetime "last_sign_in_at" + t.string "current_sign_in_ip" + t.string "last_sign_in_ip" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + add_index "users", ["email"], :name => "index_users_on_email", :unique => true + add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true + + create_table "votes", :force => true do |t| + t.integer "votable_id" + t.string "votable_type" + t.integer "voter_id" + t.string "voter_type" + t.boolean "vote_flag" + t.string "vote_scope" + t.integer "vote_weight" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + add_index "votes", ["votable_id", "votable_type", "vote_scope"], :name => "index_votes_on_votable_id_and_votable_type_and_vote_scope" + add_index "votes", ["votable_id", "votable_type"], :name => "index_votes_on_votable_id_and_votable_type" + add_index "votes", ["voter_id", "voter_type", "vote_scope"], :name => "index_votes_on_voter_id_and_voter_type_and_vote_scope" + add_index "votes", ["voter_id", "voter_type"], :name => "index_votes_on_voter_id_and_voter_type" + +end diff --git a/spec/dummy/db/test.sqlite3 b/spec/dummy/db/test.sqlite3 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..5e22282fb267ba9791209b5225fb6695031f1616 100644 GIT binary patch literal 102400 zcmeI4-*4O26~{&YqAl5>oV4X!EGVZ9vx&5eY{yNvuISuEF$_CS>K|>50V5dcRv{vh zGD$f!bvg^95ENAi=LCAbZQ8Jm#CjFnI|KZQe^kyvl zK);2^`(AH1Gq3&aYvW#J>8V%eCF$w(ucp6~`*rrSslQH|6Hmu~GoBxNH2Uet--WB0 zKlEy*pWK=iL)|`amfp>J*e)TY=Ci zC=1czO5xRLb@yR|71YPYyeQAj2~XbS9r4y2|8+L#Xm|CU%~G^Yqf(&WcS~!fZRPg% z`pwntePyGxudMFv-df)xt(&E-U1jSQ{omW%jCJa%8m7yt%#O*qG0LHCm+$KK!qUo$ z>J>YVRW@{&RkVa&ryy0a=`cH?!bLqRn|hrUy1FmBhGlk(y+I+9$WpV)2(rr_xMb}i zvmIVP@K3p3y0N;qxvLbZux!=q%yhdNvsvA8nWk4NHgl-01c9>6xcfS3R_L8;)S24a zkVN@oSvZ>EQNdrdLu$s+EYo}AM@&W2%}V>D=Xxk$np3tKjH~41(RAv@{J7&ydSTbG z!V9|a6X)-L4s0l>t+&sK@_kuoebmDnK9p_KZLOClQa?`yXsFu@Kac{O{muiAIv!k@ z5#@dI;Mxg1;H1u-#^k|lR9ml1i?U8u?ews!SCnweX8KvyOS{{;pk`Mbs7E()qAbh8 z@jV`~ykGt@9dsTnJY41l)rr>~(hPf#tU94Ibv5uhORgQhtY>xY!^~ zWmL7}sdA?OGmF)_KR(-DYATZLh@h z4Q5shvpP?M^qk1eDN)|p5st47fLtRd`(Wo)vL`{$HBN;;b+ao|d{r$wIT$tFaW%bM zrp<}b)*bFa#E+TUvspLIaGY7?`GL0{O^Wi`ns7v&(t#*!Iuhf72L?++-6@>v3%OJG z3&fkUk+&x>(R}spb7&X`P>-$wOPyT4ZbT<}yFP&_Rf~T7wRM_bt1kxz;^q@ajS=x6x1PyiIN;e;JGE7ux=xcpDAeiJnb6OX_?y zjL8f8VZ+<0!tsl***(-!MPFS(X9A~7Fq#_Ez101Y8(JrG3sG8r=Khk0KMM&hCR%*JDJ z!Qs%Q`i1Naz2>BEWu$*fpGkj`K9znc{X{yF8q)WqO%me=1V8`;KmY_l00ck)1V8`; zKmY{JIDvd_L|rN_E*IY@E-n_Aic5?6Y#>=FzP?yo{^rW-`Kds1W%26b@|Bh4EBVQ` zgw&SlUta7;if>%Gy10~|NJtj*<8evxN`5RMSmuP7;F7mGbBeSFG6u17$ zVzKzf65ap3=l_)Sj~@^K0T2KI5C8!X009sH0T2KI5CDN8CV>0@5DzX~0|5{K0T2KI z5C8!X009sH0T2LzfPk0(kLUjg2M_=O5C8!X009sH0T2KI5C8!X7;XZ%{}1>0!aEQE z0T2KI5C8!X009sH0T2KI5by{f{~vJx0w4eaAOHd&00JNY0w4eaAOHfxPXPD-;U8mo z2m&Ag0w4eaAOHd&00JNY0w4eaxc?&tKmY_l00ck)1V8`;KmY_l00cl__zB?tKm211 z4?zF~KmY_l00ck)1V8`;KmY_l0QY~y00@8p2!H?xfB*=900@8p2!H?x3_k(<{r}+~ zV|WMxAOHd&00JNY0w4eaAOHd&00OxGBL+YK1V8`;KmY_l00ck)1V8`;Kw$U@;Ql}S zV+;>L00ck)1V8`;KmY_l00ck)1V8}yf5ZR?fB*=900@8p2!H?xfB*=900;~}0sQ^H z;U8mo2m&Ag0w4eaAOHd&00JNY0w4eac>a$V009sH0T2KI5C8!X009sH0T2Lz;U|Fm z|L~77JOlv{009sH0T2KI5C8!X009sHfti^vXQsv%G80clQ~XzUB)gmaUGDbuE8`32 zel+!7_Gh`(+@Gg^I#ZQimVP)8tph=nFJBf~v#x%p#+>q9R@b$_P(-F+E-Thc5kh3kfYwAGCv=yX_oDW4VP84hVD4`Et|TE@k>{;nZw++isoAPSOPp*k*MS_)75mh zpj331xkjDwDs@)B!)&c=Gm=)4<&IG`HN(`(R?{R+!*p4d*-B_sk(wwsZQE-(teWVd zraL{$lBz}{?mV>~Q%@;RvpdSS+3>uL`_(R2Z;wsLmo5qW{wz4C87@U6qqsE7%!z*- zkHto!aKY3GCuyo|T$ER2p_Su7&R;YhN1A17JS_O9iPWG@tL_JMI~4uMQd{RIM0tn$ zSxf6DG4MP(cnjhn-KJ?LtVpe*wl+mkzIahMy2p9ywriAWaS4A<#t0Td@u?=5Yq&Mm z6)fe)x2Fipj_^d}7Pz)D42cWtkBC8qzpVPQ_1si48J!8{!AR_I{aK<$qwOvS>H*PE;;?;6CpvthOFa zit^f;a6~IH9p}RZo(|*TwpaG|5rd^|c%8zjzFS?V?iaYpJ3A>&rJS1`%d=r+@tAl&t%X2Uiyagi^(Sw|Co@e2tObI0w8dP3A9XkQf`fI2uE{~ ztcd8>zuiyx9WO5Z_Ix26 z4(q@3l!2abL@aP0HWH6T)Pom9d38=`y%>o$y;(6_9#EY`5?>~#MNV3EKScZzFA6#h z71W~}Ii9L_?57kRS}t?=%XIv?5tp6n=@4mp&rB1~bwX)31)}72mK-8q*0Z|yVNIt8 zN_Q-)#&k1igOVSuB;>H@J~OI!I~jK*j$mmg{0y9^qqbg|7G<3h#&#lu=NZk%E_BzR zL^-pfg&#e4c%7NFu^dF(A6s728=bIW%4YH%<>)yzwRK@el=sQPYdtLF%tQOURIbpv zbN#GK)9kj)AJbp}{N@X4>+N%*e4niP=mb`^jr2#DyDy!_$V5Yf*&K$DA6;r|LlWhW zW#MS1hX+CUhkdn&Bouf_x)i6}i+n#X25hX`lR&X6E)w26F6KpfZccdeCZD$cs^P!R z2DSw`%AEz}#Ob?SH8d!acGr=oPIOA(waNxhH;t$3MG8_CQywgHQP0Y$xq^Dx%iZpJ zYR!$N3|LCZHmi*C0)v#3cDi;&FZvfXnLhWi8YBFLn=;Nqf~2F zlrPb?G0)?#!?5$wIUf(JL>)g^xRAPBC`5|+I@0;ffvL`UQGSg&e9iA6GAdr;x!=x( zM30F|U0p`X{XRPaztitt5aq8>r&GLBe?&Xoy%_JVQ=IH53 TranslationCenter::Translation do + lang "en" + status "pending" + translation_key + value "value" + translator + end +end \ No newline at end of file diff --git a/spec/factories/translation_key_factory.rb b/spec/factories/translation_key_factory.rb new file mode 100644 index 0000000..aca4179 --- /dev/null +++ b/spec/factories/translation_key_factory.rb @@ -0,0 +1,5 @@ +FactoryGirl.define do + factory :translation_key, :class => TranslationCenter::TranslationKey do + name "Translation Key" + end +end \ No newline at end of file diff --git a/spec/factories/user_factory.rb b/spec/factories/user_factory.rb new file mode 100644 index 0000000..04f0a38 --- /dev/null +++ b/spec/factories/user_factory.rb @@ -0,0 +1,10 @@ +FactoryGirl.define do + factory :user do + sequence(:email) { |n| "user+#{n}@example.com" } + password SecureRandom.hex + + factory :translator do + + end + end +end \ No newline at end of file diff --git a/spec/models/translation_center/translation_spec.rb b/spec/models/translation_center/translation_spec.rb index dcd1da9..5318056 100644 --- a/spec/models/translation_center/translation_spec.rb +++ b/spec/models/translation_center/translation_spec.rb @@ -2,6 +2,57 @@ module TranslationCenter describe Translation do - pending "add some examples to (or delete) #{__FILE__}" + let(:translation_key) { FactoryGirl.create(:translation_key, name: "whatever") } + + it "should sort by votes" do + # Creating translations + high_voted_translation = FactoryGirl.create( + :translation, + value: "Whatever", + translation_key: translation_key + ) + + low_voted_translation = FactoryGirl.create( + :translation, + value: "What ever", + translation_key: translation_key + ) + + # Voting for "Whatever" + 5.times { high_voted_translation.liked_by FactoryGirl.create(:user) } + + # Voting for "What ever" + 2.times { low_voted_translation.liked_by FactoryGirl.create(:user) } + + expected_order = [high_voted_translation, low_voted_translation] + + expect(translation_key.translations.sorted_by_votes).to eq(expected_order) + expect(translation_key.translations.sorted_by_votes).not_to eq(expected_order.reverse) + end + + it "should return translations of certain lang" do + en_translation = FactoryGirl.create( + :translation, + value: "Whatever", + translation_key: translation_key, + lang: "en" + ) + + de_translation = FactoryGirl.create( + :translation, + value: "Egal", + translation_key: translation_key, + lang: "de" + ) + + # Arabic translation + expect(translation_key.translations.in("ar")).to eq([]) + + # English translation + expect(translation_key.translations.in("en")).to eq([en_translation]) + + # Deutsch translation + expect(translation_key.translations.in("de")).to eq([de_translation]) + end end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 51259fb..9312fe4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -39,4 +39,8 @@ config.before(:each) { DatabaseCleaner.start } config.after(:each) { DatabaseCleaner.clean } + + # Configure the Rspec to only accept the new syntax on new projects, + # to avoid having the 2 syntax all over the place + config.expect_with(:rspec) { |c| c.syntax = :expect } end \ No newline at end of file From a5f107ab1829066ad9e55e7c2f96f9d64c155fac Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Fri, 2 May 2014 13:31:52 +0200 Subject: [PATCH 05/16] #19 Adding tests to translation model --- app/models/translation_center/translation.rb | 42 +- .../translation_center/translation_key.rb | 18 +- spec/dummy/config/environments/test.rb | 2 + spec/dummy/db/test.sqlite3 | Bin 102400 -> 102400 bytes spec/dummy/log/test.log | 9696 +++++++++++++++++ .../translation_center/translation_spec.rb | 71 +- 6 files changed, 9791 insertions(+), 38 deletions(-) diff --git a/app/models/translation_center/translation.rb b/app/models/translation_center/translation.rb index a428401..d2e4a6c 100644 --- a/app/models/translation_center/translation.rb +++ b/app/models/translation_center/translation.rb @@ -4,6 +4,10 @@ class Translation < ActiveRecord::Base CHANGES_PER_PAGE = 5 NUMBER_PER_PAGE = 15 + # Statuses + ACCEPTED = "accepted" + PENDING = "pending" + # Accessible attributes attr_accessible :value, :lang, :translation_key_id, :user_id, :status @@ -17,7 +21,7 @@ class Translation < ActiveRecord::Base # Scopes # Returns accepted transations - scope :accepted, -> { where(status: 'accepted') } + scope :accepted, -> { where(status: ACCEPTED) } # Returns translations in a certain language scope :in, ->(lang) { where(lang: lang.to_s.strip) } @@ -44,52 +48,54 @@ class Translation < ActiveRecord::Base # called after save to update the key status def update_key_status - self.key.update_status self.lang + self.key.update_status(self.lang) end # called before destory to update the key status def notify_key - self.key.update_status self.lang + self.key.update_status(self.lang) self.audits.destroy_all end # returns true if the status of the translation is accepted def accepted? - self.status == 'accepted' + self.status == ACCEPTED end # returns true if the status of the translation is pending def pending? - self.status == 'pending' + self.status == PENDING end - # accept translation by changing its status and if there is an accepting translation + # Accept translation by changing its status and if there is an accepting translation # make it pending def accept - # if translation is accepted do nothing + # If translation is accepted do nothing unless self.accepted? - self.translation_key.accepted_translation_in(self.lang).try(:update_attribute, :status, 'pending') + self.translation_key.accepted_translation_in(self.lang) + .try(:update_attribute, :status, TranslationKey::PENDING) + # reload the translation key as it has changed self.translation_key.reload - self.update_attribute(:status, 'accepted') + self.update_attribute(:status, ACCEPTED) end - end # unaccept a translation def unaccept - self.update_attribute(:status, 'pending') - end - - # gets recent changes on translations - # TODO: remove this method as it is not being used elsewhere - def self.recent_changes - Audited::Adapters::ActiveRecord::Audit.where('auditable_type = ?', 'TranslationCenter::Translation').search(params).relation.reorder('created_at DESC') + self.update_attribute(:status, PENDING) end # make sure user has one translation per key per lang def one_translation_per_lang_per_key - if Translation.where(lang: self.lang, translator_id: self.translator.id, translator_type: self.translator.class.name, translation_key_id: self.key.id).empty? + translation_exists = Translation.exists?( + lang: self.lang, + translator_id: self.translator.id, + translator_type: self.translator.class.name, + translation_key_id: self.key.id + ) + + unless translation_exists true else false diff --git a/app/models/translation_center/translation_key.rb b/app/models/translation_center/translation_key.rb index 9e7ab63..f454f46 100644 --- a/app/models/translation_center/translation_key.rb +++ b/app/models/translation_center/translation_key.rb @@ -1,6 +1,12 @@ module TranslationCenter class TranslationKey < ActiveRecord::Base + # Constants + ACCEPTED = "accepted" + PENDING = "pending" + TRANSLATED = "translated" + UNTRANSLATED = "untranslated" + attr_accessible :name, :last_accessed, :category_id belongs_to :category has_many :translations, dependent: :destroy @@ -31,11 +37,11 @@ def add_category # updates the status of the translation key depending on the translations def update_status(lang) if self.translations.in(lang).blank? - self.update_attribute("#{lang}_status", 'untranslated') + self.update_attribute("#{lang}_status", UNTRANSLATED) elsif !self.translations.in(lang).accepted.blank? - self.update_attribute("#{lang}_status", 'translated') + self.update_attribute("#{lang}_status", TRANSLATED) else - self.update_attribute("#{lang}_status", 'pending') + self.update_attribute("#{lang}_status", PENDING) end end @@ -69,11 +75,11 @@ def pending_in?(lang) # returns the status of the key in a language def status(lang) if accepted_in?(lang) - 'translated' + TRANSLATED elsif pending_in?(lang) - 'pending' + PENDING else - 'untranslated' + UNTRANSLATED end end diff --git a/spec/dummy/config/environments/test.rb b/spec/dummy/config/environments/test.rb index f1a4814..5dd5667 100644 --- a/spec/dummy/config/environments/test.rb +++ b/spec/dummy/config/environments/test.rb @@ -34,4 +34,6 @@ # Print deprecation notices to the stderr config.active_support.deprecation = :stderr + + config.i18n.enforce_available_locales = true end diff --git a/spec/dummy/db/test.sqlite3 b/spec/dummy/db/test.sqlite3 index 5e22282fb267ba9791209b5225fb6695031f1616..b5a366b14fa378007d84689624aa239ac9f32014 100644 GIT binary patch delta 24 ecmZozz}B#UZGsdNqt!$iCm`9Fur+~kK|cUnwFia( delta 24 ecmZozz}B#UZGsdNgU>`6Cm`9Fur+~kK|cUpDF>(k diff --git a/spec/dummy/log/test.log b/spec/dummy/log/test.log index f93d534..9e2d817 100644 --- a/spec/dummy/log/test.log +++ b/spec/dummy/log/test.log @@ -2566,3 +2566,9699 @@ Binary data inserted for `string` type on column `encrypted_password` TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de'  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (1.6ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.8ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.9ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (1.6ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (1.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.9ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (1.8ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] + SQL (0.3ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 09:43:48 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$zhyatNXmoshWSwR5mPCdoupsMkaGaQRcJfSUT6WrYKbBa7ch2sWiO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.3ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 09:43:48.196503' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$iJU09hb9e4Q8Q3XsSvzQEe8CimtE2W5yKp.ENLvi7RDQt9R.xqRmG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 09:43:48.207281' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 09:43:48 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$aC1xuB0Ckwrtv/vftPCfBOGrRp9GAf76QH.MTyCrCbNJu81gMOKW2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 09:43:48.228267' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$Q0ZPH9uiBMM75q8LwPT0Gecprqbue8Zshql70GH6JUVBVMzpS0Xzi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (6.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$8po1Vtvl9ayU5PzGrHo0F.dFBwItYjvdx8VcQaUT4a4FW6VT/d1Nm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$2LiDuJzahL/31k46m3Q/Xuvb8HjWlLOfnI.I/DGO5TqoqEIG0ORoW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$wZpUrT6gsnrAmqevvbJ20OfRSTiHDvoJNua3J0dXyxP.GxhKEIELe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$yN781ESq9a6imUYFVP3RmuTVRj4FrnQm8co.bJycypRtnuMz2RzEe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$i1LQ3RLMbl4n/VsdVd/kO.8gZdG/bcA3gZgB5foQmFg8SYD9c03gu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$d7ms6P5whjLgnO76l.RUh.mFzmOh24f9nNwnBbyvqc3Ng9BPhaOhu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$gWjkky7JoQcZrk3R5aiULOP5ohH9fPxhAOmyhEH2DxTf3njLFx4QC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 09:43:48 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +Connecting to database specified by database.yml +  (1.2ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.7ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:00:51 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$ekSsYjymhyQnM86Zmtav9uPgYxp3uHemp4eO4V2Z1Zh453LWF4nAO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:00:51.270499' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$Hwi0rCiNm/7mxzxGfhLoNeYYyUiUVs8L2sUnlsI2WBNaGs0pp5cRW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$DPylNa0dnE3UQov10caozOS8xP0AWWSaDZwPXVW3nwnU3bFYuG9.S"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$OdYMWQI62oUdQwinffCzk.JqF.v4Jums.5thQJA9l9dzTyIaC7Cx2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$n4UizX1SKACU9JqhULWekOIc8URvcDBDvOz2kFkBvXcNyMY3KydIG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$3GqQfhjMh.O3ZCfw1P3c/u7molYXjDnf8KoIYmSTrsrWBxbkeaFBq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$UlEjnWEDpuFWKSzYAJLu0Ok9JPxsePBaJCqWNskZtivnUVdAf41Y."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$Qi.vuwliOXwhMWKrORbMTePoGaEL/QrwyiAGPPhK95YIKmiUe8AWu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$cInpSQfccQbdpSgJQ1HBF.AYtgIZGT/FSfv8GR2Jjo2aNIa9ekknC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.2ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.1ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:00:51 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$zCuDUVoSWEkYZxEnhyWjTupytN5FaibYPnKiF9q95vnVDVw5umI1G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:00:51.352741' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$7mDUdotzAzWIReH/kfJD/upG44ijqm8BhZRsbmSGcfsMp5dWnO1j2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:00:51.362215' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:00:51 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$ftmzr7glbKSQvmohRh0o3ePjuE.bhBb3Qt7YzIeAAmphYw9Jrcxiu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:00:51 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:00:51.377389' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +Connecting to database specified by database.yml +  (5.4ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.8ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.9ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.9ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (1.0ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:01:02 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$tP1IJdqrCIfbrbGu5AoJqeColWbLdCk/poNUBJCFT6rzmVZl8EzHm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:01:02.483926' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:01:02 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$vNHF6V/upvRNJ9XHVJenT.VFtYdsnE7oKcfbCRsMkY5zEjA6IGUhe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:01:02.502896' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$etRkY6YqM0BrExzb8/RcUuXd2X33PAWEgdbCJ1WMVOtHQDjgkB2P6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:01:02.516348' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:01:02 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$pZIa3Ez4oQ0mp4p8uvRcz.6dnR6UnKIARZBIX2GVmK7eblahgSY62"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:01:02.541526' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$WAG7u9YNqSVNYhRoNl0p2uV1rOHFMY43EuLy0kw64i2kRhuSmbLEe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$p3wZlso60CXekK/BBS/phOTauJqALAIOKBiNvNOk.XzDw3UUqp/I."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$Uv.WxpAab7cUdIF3q3BcguLiMIOh1ol5gySxbTGqaThf.X2hy.iYO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$ftqWhfgFKy//CHLnvQs90.R32jkO6fLD446NMNsLspSEswxCiWYCG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$jODy2dzIo55aG5Og7qYqSeRiE5oOl1SFeaabQGOm.uarL87cU2ZYe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$RgwP4fyzwu2a3wzEXRVTZuGxKuouQ5STap24zCGLbXxL3G3c.m53y"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$3MOG8agXgVxPZnYp6NW2c.fYqI8Ol5POFBCBR0g/ZuETQq.wzA0R."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$wukwHGDKPoUTyoERyj6TwePx9W8T99XRDDZRdFmOoCiSQZYuwLdau"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:01:02 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +Connecting to database specified by database.yml +  (4.9ms) DELETE FROM "users"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.5ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.6ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.6ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:02:49 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$LHdFHt8tKiGQ0c.bqpzrme5EKwjb/hCWZX9DljSSFQorpZxPlH2R."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:02:49.419908' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$K/2ZmWkl9ZMttWycoCSAyuo/DBHwzvU1YTa4JUVyyFqgK/U5LD3da"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$qlNddZf8eTPPR6UrWbhN8u/kmbvSftxZ3qV4V3IsPxG.XDDrACfcW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$3kYQCHp6lIHvH3q.nhzLceRwpIUsUbTrUCp5xNcllv/zsil0xfxQ."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$CFtWXG5.UiJDLFmXvEhvFelHa6DgHATHgjhUXT9pVU1i.k8LsGQeW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$r3X8zExa0uC6PwoS/CsPVOOcpZxxxb2jYJoBXVpvbtUQ9pY5Mvy3S"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$lxyAHEqa1oaHFOaRllN4Ce49bG0KpRcqiG3.mKKocrfuHGD2pZHj."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$9YpdtD8tFnjJDvGYdCeXSe1lgsQ0Y..b9fvw6wZRl8X797N.BlcTu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$3oHdYm0c205LlsUTm8Gi1O9hoVx8hniqH2T6B3HxQpOt4plCXRHGa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:02:49 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$yktGIq8JHyjSaTreBu5xDelAL.gp8bIdwM1EizBJmZGc3Oti2JAFa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:02:49.497214' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$tX1bRYyppGDIexTjUWM6ZOutwi8Cg0Ag9Rh3pvUlOmDCiA/TNKYYa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:02:49.508599' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.1ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:02:49 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$vu9cr.WHtxrls/w5N5z/lOpgu31PkULDrcVBuUZXhGfUS4hPI/GP."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.2ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:02:49.527693' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:02:49 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:02:49.533711', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:02:49.536826' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +Connecting to database specified by database.yml +  (5.3ms) DELETE FROM "users"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.6ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:03:00 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$x/hUjr3ndLt69vDJ9uwZouON.U7xZmbCXpOjvhPi8OXGg.KzgbnnC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:03:00.091800' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$fDKvhEiaCve1UhBapwBFfezk5w4f1VrIu77UAKgfUt9XQvtJJtrGq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$xz/aNjE3zSzXJ9DKB5VZIeKgODQM9qwuQ7LxluMpg5UsKDy9nmuY."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$JWVVEl/1QpJnOAj53d/8We5zpFlfNTin0nAi3tJ2O53y5VMeckqwa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$vUTq.d6OIFlqq3BTX07eN.8aKjBgr2lFjoNK6NBkhHbZ6Ea78bZ/."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$ac8LJCQpD9lFFsadIYQIyecVL41G2GMdzKb81l/m.7zAcempHg2hC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$/tnGui/RI0apivbliH20Re6pFX2omiRiQJspJihPMKvZeecveuX3m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$6BiNBQFN/qUR6MBw6hmLoO2Pi8VePvoGBLs4F0/Jh28OLHBwNQO.i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$Bey2bhE/3/ga/yNjRHHtwOxmZ.7lHrBE7H5Kyn1Ac/UbzFM/OnagW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:03:00 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$XwRNxGOIQkz8/Z3aqz8yFeroGBDFu9v5KLa6WrD01y835.eKCCJMu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:03:00.170812' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:03:00.174994', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:03:00.177957' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:03:00 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$cAvlPQr2OnEjSTqv4QpQdePZ2oCzY9n6q6.KNh1qgUUIYb98CuOtW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:03:00.196627' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$74WcYpqs8Z/KZ8.yXx8MSeidhmEq6pDT2tzqQMLaYe8JlsNe6rLiK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:03:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:03:00.210123' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.5ms) rollback transaction +Connecting to database specified by database.yml +  (5.0ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.6ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:04:15 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$7y0IFmUxBtiy0Gt5IMFu3OGldqzTiG0V4GCkTUIAMjB3r8isTGqOe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:04:15.748320' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$rV4BxrUEevqxzq50CT0nyeNF.f119fmlIkIYLM9iboQ0yaW.CvLPy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$CUYrVw9bGNnwx0eAGc7My.OM3yyuG6ApHFLZKzOKbXWna4VDzJL96"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$BCMZIPrcmdh.yUqOIpwU9e30CXMaMZeM5ZINg7HYLCC.3Ki7icthW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$TKbZLUQ2HFXIOFOPaNPZrej2KpwcjNyDI8SxmGYT6NtxIGu7lVuqW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$Z5ZxE1pw.su4D4vKBq7GIOqMoISXG8PMHsbT8P3gO3NuyLvquSBlK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$UeL30FRPbyg9zq4IDJ1ZJOsVaa5AAccUpCPoXilhuahsZTfwmqETa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$ZU5NsEl3JUi.KHwLNJ6JveaWvSstrgbiH1tM42KTkZj5vvzj3qVya"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$0zE9umDx3BPiB2fgM1pPAupVKv5jVpzfWLKY8ynJR47AK.fk1UBxO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:04:15 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$csV6O28mCzDJrvXSZ4B9W.ZNzEdQWuCNLqlLXD2yZu/VuabA6LXpC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:04:15.824732' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$WCbeKP1xB9uo/bVgVZx36OyBhvpPx8yFeA/y7LNNTQRaiJVygAsYu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:04:15.837254' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:04:15 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$LfKizDEOeiuHnM5IX5nD7ue6Ij0rQKJcOizE2HDlVA6EqF00TnEmS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:04:15.856524' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:04:15 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:04:15.862689', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:04:15.866521' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (5.4ms) DELETE FROM "users"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (1.0ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.6ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.9ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.8ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (1.0ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:08 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:05:08 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:05:08 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:05:08 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:05:08 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:08 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$NbJxi12HOMi7w7oVM2mKc..f0aLxOtsEvndloAlRA5cnx02zmp8SK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:08 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:08 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:05:08 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:08 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "last_accessed" = '2014-05-02 10:05:09.000185', "updated_at" = '2014-05-02 10:05:09.000502' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:05:09.006180', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:05:09.008912' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.1ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:05:09 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$7Hc8vHTqScpNjm697vFPRejdjkXsZvIQRVhkEOUA7lqAxm5IYzKr6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:05:09.030286' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$9V5Zfm7qz7MtK75SXcKDdOOLXlTkL5VqHVF0fCEdegnt4Y/51xY2G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:05:09.048578' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:05:09 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$TMY.7F2/jQDaIxmIkAySnuEapfPH76P0jl0b9JOe44Do8ZoefSTy."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:05:09.068532' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$PiDQTmbLVA7OU/yue28D1OVJBuCE6DYGVdQTI6xLtwj6oC9nNPeT6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$w4xSEqwK05/dEYqB/nm8GOLfKjMYQd15IiXj62qUipLz8WEs3vT5i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$GeNMJLsWlOMAVk/87VKMKO7h2RSozl0fFmBbR./mBTE.5eg93/7rC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$wiA8bWoitWQDKxXkU.QgZuIhyMlKLTAZGoaZ2FO3vgQ2CZJj9OE12"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$CxTKZ/fWNZ7jUkb/pboWQ.iw6AuMIoIivMB.o3NOh.VgDpEa19Jim"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$ffn8jilHsmmi4KRBCT2LWONenCe7ykLOfBcIRlxKG8Rl1tK0/xy32"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$2m1VfKF15xGCr0PhEDHuJO3ExR90miquPkvk9fwXaBRP4BUMvmN4q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$kSIWSV.WFwA1HhgjIbMokunDqT1IPxgwl3YKxQCOnjAe651e.tXCi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:09 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +Connecting to database specified by database.yml +  (1.1ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.6ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:05:52 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:05:52 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:05:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$rTtbuCiiUbbU.NQCOQzHNe65E.LEoPD1ss9tax8/fPvcPGWJe4r1q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:05:52.961279' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:05:52.966864', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:05:52.969386' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:05:52 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:05:52 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:05:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$O..OjDdXUOHCM5PUxOf1Z.xUwAG3baaLUm71rkAt64zXc3K8eRl4q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:05:52.988290' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$vciZ2rjB6qtD2AwKesdLv.7wVyt3kD94kMLGpStzhBh/7vkegHlTu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:52 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:05:52.998901' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:05:53 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$VsHQ1FI3I0ts6yFcaWocWej3.ITdrsih9CKDjzPeE1TK5LE/YAKkK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:05:53.026562' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$vCCfqvvAL4MZQvvAtXvq9.euIdJINORKmjX3hp6oa8bsASb44ileu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$xDMxvhD/XOz6Xu1bRBEhr.h2W30W.OhGusaxr3neXUZBlgzNB.SZ6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$49fw9ysVWtXjjY3XyN92JO61sszAHCO2RBZsiDG5A5uxtyczwePDS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$Be/SelxIoRD5sNS5kUWveOp9ED2EvENiBz7Ze0Qqt3vVy7PEA9RTu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$bToQlcvD4DAB0BL9Lmmcv.iVpqwY2U2KrD9jfBUt.grdptby2zlK2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$y06aAgeM1L.l9FB9Rfnb.eZXNOzNFZSlxnO88S1CcULyf1BSfDxfC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$quHAkpW1eszlV6PxbOYS6udmmPQxZzDm5UC1l7bfgj.IFxut9AJ6q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$uQSk7pZy5GC8T92MZCyRTOKxQIOIa6kdZGBj3kLGh3E6ncX3dIOoG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:05:53 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +Connecting to database specified by database.yml +  (5.4ms) DELETE FROM "users"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.8ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (1.2ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:06:28 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$ZAlIU3IWxK43qgLGzXbcZuqORb2VIXe8tHibzQxXhaac3eSCR3fIG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:06:28.766163' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$r6OnXprz44MlInqYnd8dTe0qoUuBE8P.6JNm2p.llF7XKZiMoODsS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$EWY/Wk6RLHk0DJNgBqAWb.gcuz8sZ97kD7DsY//AJ0etG7kWtMNY."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$HfzxotBJEnvJVfSRcJ2F8.fg7t1kJH.DI/iJ1qg4QJ2Vzueri/dRu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$H1IZlRGH/zLV64kg0NB3gOEFiDmmuPhhPA/4eq4T8Fl.MiLPoXeGe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$a75vqkQ92o/1rffObcrewehripQRcy9DUKDIht1Uvvu3JVSn90UJ2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$gEkq5KiMDYBYTmbWPcRGiuDvoauPKoj1mKSc3F4HJSoIM/Jg470ve"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$pOyqsQFpbdiJwUIYYQE9GekcBdZYeiXOeEqvy79Bu3snMO2hHQQvu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$m76juqhcXDadROYL8SovJOJ73VqK1sWnbLOMJZKbwedW0z8a/gAlu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:06:28 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$xzykaCC3wOnwiC/ApCo8tulEFm.44M0TsNaICHNoMjN8VfvLrsyHS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:06:28.845520' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$oIuu19Fh7.RtZW4hjCK8mu8Hw2jZySLsFyTTX7a0SL5ypxsoDdthO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:06:28.855112' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.4ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:06:28 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$6F9mjteuU/K1FukFV7rwTuyEugFVc7SGcKaPtYTCXxN9S3jXnflDK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:06:28.872351' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:06:28 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:06:28.877375', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:06:28.879742' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (5.5ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.5ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.9ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:07:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$fun9Ua1Sn/ZL2iicI.DHC.wW.ebod72Dg3VU.YLXdYVI3qanogWDC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:07:57.158542' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:07:57.163481', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:07:57.165998' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 10:07:57.169880', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:07:57.172404' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:07:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$APhjtLjizQsZY3wxIGm/VOqL6qS9hnilraEK9EdtaNZZX66NH3kfy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:07:57.189109' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:07:57.193303', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:07:57.201319' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:07:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$H822qSOUND0UsBrv.MswSetxnr5g9ZTrh7rxhm6PVZSBg31O4ZV1q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:07:57.218589' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$eOWgSQbuCdRLbQl5qCCZpO2MLsz2KG3/jEVgnhpiyw/0EQgxU..rW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:07:57.228841' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:07:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$gkzwpkKQMnW6WHmEKA/lrelyzcnxG7ti79HHf4ePkUZmPAhXgSScO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:07:57.244377' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$iAMHBlHCtVch/njpdoD0HeC4CB.DLHa2Wrs.YSjbLIWz9M.OwLPSK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$0gikPLKqrIZD0GNxD8kqYe2pkfYqslBUY10lOOTShkGH0jPsmS5NC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$syA.5ePAP3suqAF1uaZqVu1j9rfo.BsJNVK45X2hBZZR/Oi3we00G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$vHnryS4WFjCB57k7YnblSOF8RevdW9UThIl9jJp/t8yTgsbPh0Esa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$9ipS3h9iQKRWGdfKZsLmGOl0lL9wRNdGTJoOKdxMK59/s0I8KTod2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$ijjId7uOku3nPgqb98jPBOEdDSDA2JUUa3KfuaWA1xDExsjj6hgVC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$5BQPwXcOFEEhvl2y/8ZMReB81WX0ggEtgmdNilwdMAPMSW4gbGyOW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$mAw2uwJ1jolgJXTgepNs1OT8lW8hWBjaU9ujgMBOAW8RwuvVobOuy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:07:57 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +Connecting to database specified by database.yml +  (1.0ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.6ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.7ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (1.0ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:23:29 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$puMN31iU9rThgqaX2LkkleyZLWjG.rmxUJM.ZRi2hzzv7uKc39On."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:23:29.107088' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:23:29.113174', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:23:29.115950' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:23:29 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$PiawNoVrOmyAEJaIoQLQyeSrqRpuxkdSRv1pan1fwfCE2Y0u2tqim"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:23:29.133258' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$xUh6VtmMmL5FJebLmKuFRuOEOGHTuDsvd6QQfaY80/4NhFBTGGO6G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:23:29.149666' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:23:29 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$Ij4IoaOMIZO3ZMPMOIheLuuB4GeIpEQvnleaGM8igZr74YU1BPOFi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:23:29.165020' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:23:29.169003', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:23:29.171392' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 10:23:29.174142', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:23:29.176531' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:23:29 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$art.0rGrK1vyzztbL8b00.clIrmE2..FrXXLCWedizsE/41R/cjnK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:23:29.191544' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:23:29.195757', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:23:29.198523' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:23:29 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$efTVOjD0fsukqHQVWTQSBOlEJTZOs9GJieE/8aGn03zFFGZPh57ZG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:23:29.213509' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$Zzitl51Yu8utbLZBX/OXUepnUiw.p3Zz275ZRpUqm0ArThs7uEK/K"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$HAQPYp/Ju2snNWUwrG5XUOhemsuDAxb67kNlu/Tj6EcGI4pQbn9v6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$5S2vd2Goilm/XGN4AGStfucQ4jsPjQFoH2Vvg92tgloxCnUZ1LJJq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$rFhhnMwEWapnG.c0anXaSegIBQ1GxKPpYhyNm3RCe8w3yHpb81QlK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$oRdEzhXDjts6YnGrD7yEmeZSBEDANcCQCGm3Q.hDwtI98W5V95N1a"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$iLXkUWkwivzv3YBlNFDxmuS25Wzj4mFav5g94pIUlM5l6mTAWaMJi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$1h8WEaNKD5LkwU4D.6e30eOEFBjWwnnTjfEv3NejUeZh6ILnw10a6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$zvWHWDTee5zW1Iapp7dFwO9poc5NZTvvvuIF4QXxlOdAKGblJuBUy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:23:29 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +Connecting to database specified by database.yml +  (5.3ms) DELETE FROM "users"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (1.0ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.9ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:26:55 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$Zadw9n97IXSplI2Y30S9beJhu6NTQHfbIQTDiqaGjjR.Gk.ORxIeu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:26:55.261438' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:26:55.266826', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:26:55.269662' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:26:55 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$HPwX9lR/8hHg/uRHUkLN0ebMA/uzxKwzY47.no9Yqa58DJO82Le6y"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:26:55.287138' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:26:55.298761', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:26:55.301844' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 10:26:55.306110', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:26:55.308817' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:26:55 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$C6GuGfP04tJL1a01DlFKduagJr4NevVvBoQWJchG1dLA.weui54Be"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:26:55.325888' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$NrXqfc3fBo/3/ii4jQhbUOUPWJJ.H4AS0pBHEnZ5/xfG..ZBFdVLO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:26:55.336318' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:26:55 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$Kp7Ol9p4Jk5LYQjXqN0yyOpbDYKnupVLCJ0fWEhelIA0zsfjd6vpK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:26:55.353671' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:26:55.358802', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:26:55.362784' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.4ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] + SQL (0.3ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:26:55 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$z2jOugIGOdpgBkJDBSwrp.T.N6dhc5bI489jzI/05yvezDXyfxpk2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:26:55.379469' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$lsOMOY5iQs1J/mUvuwPEF.VTnRvdVt4kAEx/0a4hBX.T3WHbJKKVi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$UDZpet94EQWMzrsZ2jDufuTbfZOpkYrz5TYqDtWsHpJlbKPVazdiO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$wIH8EeuT1fI/NQKqKoGQ4.XJtPSx53pWMCLxpB/T4HVFo0kWco6bq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$ucHJ767B2vIJis5tdwzZVefl6TI/sWUHC1QFbWY46y4OtkmqUyrgu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$GFOgm38IsJybJEzxyFBbVuvAX1k3Hk0g7kE0A0N5Kfi3IGv8hVica"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$U55uJ9Bgtt4NXMxMHZSmieQov9c5vLFBMhjhCZ0oE/dC2JRTYU2JO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$97pYNKCqzauXpT0OsUS3mel2rLS13xBu5lhXkYnxQCEsHIT1fWOLK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$A1wRg5yijqk8U9AWjve90ODuJwT9AbViahiSa2B1XzLFxB3.AkuXu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:26:55 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +Connecting to database specified by database.yml +  (5.5ms) DELETE FROM "users"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (1.0ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.1ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (1.0ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:27:13 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$k2H.e188iKKCibRdnATNSeT6IoKK99LxgDtZkX1fFEvYXKcEcGiDq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.3ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:27:13.069439' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$yjnF8is5LREMyhG48/WFyuxh9BplW4IIKfP7ujpLM2I9v1svI8a/u"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$uhjmiSn77RsWApKrw2QkbuhheZzWfDIj5xatYpZOkSU9PnlBA9jG6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$p/9MZemvtgvZEuocMRfOOuAB88z/tj3SmH/x/u1XwHdser8cgWAMe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$1m0m3VsTdiu4YiehSyBvI.9dONjQxzRK5XecclRD1nAko0kmonQMi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$KloEatuJbZsC/rT3qpK2KONQFxFtXcdVccCTPmfEFThd61FQA0N2u"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$xRKebT.Dkg1mcb1poqr2muUTCeJywyyI4A/1OFvQar/OpfP7ywozm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$0OBYOpZcrumuH.YzTPaJKOtX/UoReY.5Iq6KsHrQVB9y4yvqJEWWm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$WXasJH17ywJmMy.8ESG1XOicGW.sXBoug2kHl5kUmrEt7pZ.t8ZzC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:27:13 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$PMi/YC5iC1pV9VUYVeiGoO6xF/NvXubDwNnOHeTX5VeXrrVnjALM6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:27:13.148732' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:27:13.153120', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:27:13.155778' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:27:13 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$2RzYRvb54L6MK6CKPaecMeM54N3ElxpAGb61SGZ0Q8Bgm322V7hFe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:27:13.173217' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$FMx0RU0qXt9qZ7XInYkTA.zbkC6AihI0ydCer0SnRXS8BiEUaQvPy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 10:27:13.185245' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.4ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:27:13 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$EZA39IzVPIJqK2VmZ.ApEu3UX2vGeg3n3CRCWdp8VGHzF7F5Jb1ma"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:27:13.203241' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:27:13.207693', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:27:13.211800' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 10:27:13.215485', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:27:13.218685' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 10:27:13 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$7KHJSzPYV68QzDL.Kmpk6uqi76UyqAqTVz/dRhDiTg8BO5egqICKO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 10:27:13.236188' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 10:27:13 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 10:27:13.240258', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 10:27:13.243098' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (1.2ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] + SQL (0.3ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:11:03 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$n/kLPjJyCIx8Z4NKmFRUmuxGsgQtZvm7eAiQHRwy3rUlqfPx.mG4C"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:11:03.847263' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$XRL1vYmzSvRL9XXtw1dTvOGOsBOHhiDlRCCBl5fqjSC0Y0Vc6xHT2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$sw6p2sBJHc8XFdT2nKycV.zf2ak7YQakkISdnLvDxCxV77YXE.U1i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$5aBpXkPEaAwsqoi3wXqD.eusS7LbMrloVf0j4i0tsc.I84HRUT8bG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$dt/XfPu3Gt/YNPbidUlX0exqNqNu.Yq2XF7bZLlnpFpa1jzPdLTEe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$sOp5vFmRaiwUOMmJONOMQ.fvDzf8BLNyZCYWXIZGkS7CmYixu4RH6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$i00RFOPtgsMwQcDTAz5wT.hFcQVESEkGCw28VKfPj2UNJLgWixZN6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$Sr4aFmXITaVDtYMxv.QQ1elxwW/0nmD9.StlzJ0N/edwAoXOGyG8e"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$Z3JypvWfeV7gH1ydGTfJ..3113sGKSgQcufAAVX2hFyDKsyxMtrOq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:11:03 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$WvVkdrqFy2aIFjJkT2clBuGl0/SpjvsYSggpIIDrGE59wc0ZWfKWS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:11:03.923521' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:11:03.927663', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:11:03.930347' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:11:03 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$08frDkA62JvkEPgMiGeWc.9z.AFYlZGIFdlApV0f8EJM/88raZQDC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:11:03.947078' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$13XohABZQpAkjbaLckDGJuz1vN8lAmuRcXKo2bpfiQJ8b/7FgCuJe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:11:03.957871' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:11:03 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$SAFgydLdbQRUy6Jl1TKuMeb3FinVk/PQEElmdgnUtFdtgq5n4I6lO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:11:03.973277' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:11:03.977191', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:11:03.979693' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:11:03.982604', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:11:03.984974' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:11:03 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (3.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$KeJsmLV8E8ytcFExahbfBO5.Afi7WC9PxYhqQs6XIXBi5elE.2Zmi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:11:03 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:11:04 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "last_accessed" = '2014-05-02 11:11:04.003951', "updated_at" = '2014-05-02 11:11:04.004115' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:11:04 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:11:04.008101', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:11:04.010610' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (5.4ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.8ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.6ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.6ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:13:56 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$n21DK7xeIzJ40t4Xn.yc4eEn79wPR4FRQTPZgxAWCnssL/rSvGivK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:13:56.591442' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$pn0Ew/chmT5eijmMsZzequFBbyIWAz1sApX4QvEeEDTZZ51xIVvF."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$FcfMVgYgyvQ2R1xv3bIeN.2BGGFNd13BsC9X38Mgz1xyv/U76SbNq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$uY.HA/elskmTY5/mMMSJRueSZ0fGjcCBwU/v67DvYTRw0zGVzrmAC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$s2StwiqDoTGA5ipPJ3e9DuuKNUCaEDjmCPZse/xkcKs/fa/CU4ylu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$96kbaFoVixJGUEbpbT4wVehFDbVZK5Wke9zYsDINKrEZvdz/S4/wS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$1E44cu0bdoDxUPBgCkOYt.Rw5S34TNp5EMoXS7cibOpqmTjr4yllK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$VTNZSW.YLd8pwov1gI76yeh/qlRRtqE7lz.aMyjei9YulshB.WhFK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$SuSBfb9I9EfzAFGks5aR/engha11EshtP/PE5Vp84.l2CZ3A/9gLm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:13:56 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$o9J5OFUbp3Cxb5yHkMLGNeGFntHqlDS5l8abdtNogFn66.QyQ/O7i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:13:56.664957' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:13:56.670128', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:13:56.673099' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:13:56 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$TD4RJDkrLouytknu93qeBuOSGgWZa55W9/It03//B3cpp/uSUoRP2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:13:56.689650' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:13:56.693244', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:13:56.695579' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:13:56.698218', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:13:56.700511' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:13:56 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$INdeDROPqpuQRU3nr6HQ/ulXI1qiuopmPLm7vWKjYo.YABnFdtdQO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:13:56.715226' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:13:56.719178', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:13:56.721634' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:13:56 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$wqwLI4T3Ce2YFHVarzs6seQLV46R1SQJ3pLaIyc/uYXAANVlU9dFO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:13:56.738658' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$Wn48GmRa1gWt1PcCyJ0CvuyUB58QXMlzRhQUBdDwcDjvP6/sXUL3S"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:13:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:13:56.749030' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (5.0ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.6ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:14:18 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$LZ0KbKw3maJkNIyZYvPhNupG/c951..Gcq/veiTwYHWTBi.Ut/OQO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:18.487450' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:14:18.492359', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:14:18.494854' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:14:18.498404', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:18.500822' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:14:18 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$kyLjCDqqpQ/M5x5mHvvofusUQDUpTCGCEnN15QbSRFNuDoOoJM90K"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:18.519690' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$C7s49c87VyDIhcAaX.OdAOrDB4tsrXUNX46aUzhlmjf969zwa0mcO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:14:18.538194' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.2ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:14:18 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$3jfGHfzgy9PqiohLnMQjEevVaAeNWv7uzyRiH4xPh2pTxVUqPkfGC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.3ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:18.556645' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:14:18.561177', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:14:18.563704' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:14:18.566445', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:18.568736' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:14:18 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$/6oyNvPvHuk2291z4WBDz.bixgxtEub/s.zCcLzkzR.UN47SscTju"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:18.584052' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:14:18.589479', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:14:18.592245' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:14:18 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$kAzXoTBoRCG93vFkhccteeXwo2mlPNOI.WNoQX7/m0G7Rc8PXI.P."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:18.609919' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$dBBGHY6SO5YmC5i.6Fr2auSY1GSSNKnYE/fYI7cM.2WZow8vnnA8e"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$23Vbd5cTC5OTg7bYnWUonOUtUAWXqb95P8xN3jtBRaRMk9dL3aVDW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$GeLTWVXd58C97RCOz.hGN.V.q7X.AInGkaEjSifG87zBiI1qmqife"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$7gUsIna18AfOol.MgVH1iO4MJnTKQ19rQFLJuCtIhMZblo7x33/Cu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$WKwut7TmJwTHKekOyBF0ZOUnFXfUThMnfGNCeehNEYAunxgaV6V7."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$lTM3s3JKJ2WPQnVYLYnKgery.LHoR8sUuJbsXdDNlsWmiizY.EPyC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$colv7nIMuSNYRWeLot7y9uzbqabgytbg059RARRDnlapOthgpFqiy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$3sBlutY50aiATi6ezMiVhu5/3laZmE59JzDb/vY9j8TLXusSZTM1e"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:18 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +Connecting to database specified by database.yml +  (1.1ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.8ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.7ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:14:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$/y4XLoBT.SvidoSRrXx2u.26hnjflPxZMTB7zZvyulFfRigwWEZhm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:57.294349' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:14:57.299356', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:14:57.301879' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:14:57.305449', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:57.307996' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:14:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$vBlLTUjGwENl8R7x3K6bnOT5rDl/yt68EIl.knb1buHCMfzyJLsz6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:57.327585' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$kRd849UZ70bN9qnU1sDAOOXAACxjZSjHc7Zd707X4M3jSAZdnzlPm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$SrK9olL9EE/zjMqvWiBNleBAcxG7r5OoNT79ycQ55buAjNQq5dlny"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$5au3huuOYo1z444znikAUOeQo4kvs1O.kUwJ/QJtfce03KDS.2Zdi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$krIOW6AAJBPZg0wR7NAN0umm6Dl5XhsiHeVyxFa7sBqM0dG.XOtCq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$nLvGHuaHCk.GJKwpH0zByeJU2Bwo7LC7vSG0ngILp0wFIQB.Xyisu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$X5RMl5uT3QfZMewppXzEx.9VMZeFYhjMuBXsTnd.P54Z1DcEJj/cG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$tWvSpQ.XlZLhgbas5s5HB./i58kBog7UiLgs0oB.JXGYGpyws7Fle"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$00F5dwPJuySlrphs6KxUPeKJQds2eMG2bRGYxYuiZWpblIR3vZ9/m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:14:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$wPubOYtnOCPhB9xF.FeUW.e9.E8U0LGxn/LKlbwcLE/DZDZVv.Nhm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:57.399765' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:14:57.403576', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:14:57.405890' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:14:57.408509', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:57.410722' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:14:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$fmku2OL435KcYFRqGRyACuAdY4e7L17o1qG3UL2r0aXGwJtKQ1acG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:57.427121' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$J2zwxT3I/5Yqc14/5w.wG.Su4JXSZOVMWM722qkOfRjbJoArmqykG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:14:57.438120' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.0ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.4ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:14:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$BElJDB8KilqYYI3OCDYpdOlGHiTOWqTd1m8BznczVWxJ7YLty8WrO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:14:57.456370' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:14:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:14:57.460153', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:14:57.462530' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +Connecting to database specified by database.yml +  (1.2ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (1.0ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.9ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:17:17 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$JOsGQE2Vrq4HrHlgA9rD1ORxuQZ9LXPlOPG27JmLsW2egM5ONyKB."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:17:17 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$W1/ql9pS0.0nCO5ihywSmeSLq2T3moJMJIZYzsn834qHCC7AsUl3K"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:17:17 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$rQz54E852T4KB2WHztzNrO2rsBwGG50bYoiu8nV2ifA.BWhyeZxoi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.1ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:17:17 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.2ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$c1VW9ScblGxemZ/gBeaOvumKfas/YZ1/uCZ23aMx0JawZCGUUsDUe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:17:17 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$3gAaiYOzBwYeq52CchHpB.3cODilOMTzShrL5K8LzWpBGHV067v5W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +Connecting to database specified by database.yml +  (5.2ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:17:45 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$pNqBGi9Po2hBiOoozjKe.eq1AYYs2mZtvlnvzNsiZzwED0i7oArwK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:17:45.901253' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:17:45.907081', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:17:45.909734' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:17:45 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$Zpzsqced4rjo7k/j98zHq.aDi9aIf3.AkWzH2H5MjoEP/AZ7A04vO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:17:45.926364' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$xc6EzMT7QK7kybTIZDzA5OIZhnruneJBbZNbgkCohaaQ5blhYIW.i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$wuoYo3s/xlnSO4KCxQnqJeFm.oibDcSZvVWwZWDzdQGtJ2AGyDUXu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$/dtV9qaehX3sav7z9BPrpuWkvc2ZQfALBAv5w112nXLsA1Qr0Ok5i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$q9J/OKINeQ/aufSyM1L72.fojtSSkupr5vNjY.Qrid8Cgv/kgcaSa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$CzaWmGI.qbCTNAWNda21puwCc.WfDYRWGLw9QRAKuGXGQvKrKNTO2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$2H9Xq/ISbmTWU3koSIWPvO6JP/Eji6rdfkxxJMkek5xHA3vF6cYw6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$jT8o8W0SJMsQha6gYM3xcOpN3mzK8gji3PURGIgV/9vMqCazkoZgC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$qsEPl6nH9FFxAWhxZUV8i.Jdz5F0Leoak0OfSbmWoQyckp5gL/cJq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:17:45 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$nhg8UtazrKeZl/YKeJpCreHwUlE5OYungN2KwmM3.IJPc/NsXk37y"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:45 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:17:45.999299' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:17:46.003974', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "last_accessed" = '2014-05-02 11:17:46.006402', "updated_at" = '2014-05-02 11:17:46.006635' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:17:46.009539', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:17:46.011883' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:17:46 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:17:46 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:17:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$CJ0zzG951eIR2IRGmzQ9huWUam5H6ThNcXK3VCDvtLWlncydQIYe6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.2ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:17:46.028811' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:17:46.032756', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:17:46.035220' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:17:46.038058', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:17:46.040432' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:17:46 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:17:46 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:17:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$1qQ6IqLy59xM71M6oqm9AexaLhbzTpEUzrN4.qLHoOhS5ZzCjwLPm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:17:46.058673' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$h3On8Tl/5ZrcdsUYR9VWs.inoB7VK7P1dEdWBhtm3Q3pp.IPjkAl6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:17:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:17:46 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:17:46.071217' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.7ms) rollback transaction +Connecting to database specified by database.yml +  (1.2ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.8ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.8ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$0ASjm/qRjYLPe8tGRMgmsOP2vtE7OY2OlURFIwtTGUJIGeLFUBpyC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:22:35.697707' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:22:35.703072', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:22:35.705558' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:22:35.709054', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:22:35.711896' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$SwVWKlonshfeRfXvwKlhk.SRBCh.xnaqLJMCK1KxGO8xsGQiLc19G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:22:35.734748' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:22:35.738452', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:22:35.740830' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$Nv6Nc/xj6ELSF.5fdlj2.OCw9ZLMtUTmVkDmpVfTXQMMMzL2POHa2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:22:35.755764' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$nCpk1A3Zpft0deSWTVBwfeGZFA25bd8Val7IhPrFnBxjRuM2yN6d."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$h3ZdXQmrGNOPYXmjujekne7rVQbSu3kxHEIcz7uFLY7Su9JQdOlt."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$D8LiUqTtdvUb1hWyVISFheAvzQ7VsE6t/EhFvMWbni2RZ43bkNnk2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$LWWBPhoDldJV3NAPHmIWB.A8et0rh99l5MZvfzOzCK9DT5YUyLTE2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$h28MFwCRmQJDvKddXLGqOO9SVrOiRH7tQWb30EgAmxuush/WW1556"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$ASijOKSI/0R5yoHNac9gxuL0VUi1P8iM0km9/gleS1OTRsEfjaJci"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$xfQ.kUtmhaoIrcdbcdhoY.cmvnXiEsUZL913YjBJbhG89cZ7XWF5W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$igOhzoief6SVtufjkTgvwehvD35v/j3BEZW2uibavwqmt00YNR0x2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$RWTu0dB4Yi8hHWLdyer0OOCQUn9DgrQtuU.ZI9A.DjGtVwQQoa0P."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:22:35.821406' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$xAte.sTx.miRdtWwhQQVD.CiRAzusmZphPY2IW90Dw8wV3SfRUwCu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:22:35.831580' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$uXRxgc2XeTdqo5BKXkIbeuo8rvTisIOo9Yweul4FS.WuD1ybIt1CO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:22:35.848248' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:22:35.852232', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:22:35.854699' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:22:35.857492', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:22:35.859776' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:22:35 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$6wD3eIwmVXvEdmDSG.rLOufGzBmdiO65b.9SqTJAgQKj2pc0jcclu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:22:35 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:22:35.876558' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (5.4ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.6ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.6ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.9ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (1.1ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:06 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:06 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:06 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$owpFmITI0IfYDRBv8BcUQen.zPlMnpvqfRnxe.910yLDSbLe2DdQW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:06 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:06.977648' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:06 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:06 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:06 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$4V9K.DJ6R//h5q47/QVFmuYLgWShtepDdL7KsIfhp4iwuuGDxSctW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:06 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:06.995428' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:06 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$TfrdDUUnKuy6rOjVozokIu4.5gQexD8sr/Bg1xOQoY7es.o/w29yi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:06 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "last_accessed" = '2014-05-02 11:24:07.005297', "updated_at" = '2014-05-02 11:24:07.005469' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$TPj8jGkAHiEun4GTfigrf.qlwPmEHIBZRVPqbw7HIvW0jVl/zSnE6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$GRr9QJ68/4ZBzjD2J6hTRuEhyIXQZPy7nc.j3pMPSbm8UF0Kco35e"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$eJWtF0JlwqaebUkdkRy.AuHEG.fiXGKj4zCbuL8Kz/1C2/5QEEgfq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$GvNrGOhokhOvckki2jddTOgMcmG5xV6qvkHHFmGlzW7szSuGmHtsG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$Q1yGC0kVqzjPgdgaq5pU..tGBfdn16D4kzZNftUBwmSfYNjhK8PTq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$2AP28WO7jPBremv4Z3ATIu2UwYZ3tLLrhd89Rk7XarQh2FYDz7nzK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$6tRNmgC/CU.SB3KuMIu18OKei/o7.EjAqmkqH7pGfL6ft92xjsB9e"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:07 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$8vzKY/YqSkEFm91DW4aTD.Z3krzKoLsRwgdij1aVMSpOGt3cVH9WG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:07.071742' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:24:07.076315', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:24:07.079004' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:24:07.081997', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:07.084413' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:07 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$ztiIaz6EI430cYB.uraWE.s4gjj.5.eSRDhpG40vbinVD5lZoZIqS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:07.101895' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$WXdLlEuw7yzba2jvp7Jv9e2iOzRtu17/NmdIXziMrJQgcAyasakCe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:24:07.114383' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:07 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$NOOgh1sCapyMcNpcY54.xe/5GeFO7owTgDrdoIdPSbLjSveAACJ1O"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:07.130709' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:24:07.134716', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:24:07.137123' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:07 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$DdD7TxDrWnYSb3DcOzZiHuVMcu5Tt8mmjy68kr1kIMmbOLKM9vpOa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.2ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:07.158922' WHERE "translation_center_translation_keys"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:24:07.164485', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:24:07.167276' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:07 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:24:07.170494', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:07.173198' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +Connecting to database specified by database.yml +  (5.3ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.8ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.9ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.8ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$YjkWTQHi8NdZ.28yWIlFiutirI6Y9BMgugufFncslhzFbT5HVazQy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.4ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:20.488191' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$.vSRwYmpAxlOZqloeGhfK.D/fBy6aeNZDXi13KBi4tttYNoHfkOdK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:24:20.500448' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$fUpbTPQ9Fi9K503dJ5mzPuymmRcJhawo0nLhCfKl6SVadMnmMEUsS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:20.526434' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:24:20.530664', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:24:20.533897' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:24:20.537999', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:20.540941' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$X2HVDGu2phtQ1nxzADrFQegHW/85BNnC/QF8OuHHkxt/ppFJ9WKWe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:20.559060' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:24:20.563556', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:24:20.567144' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$dR2plpaWTn.R3y.Ol8DHnOafqGDIpGeXxuL6dUMXttLtThTfWDIHm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:20.587358' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:24:20.592541', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:24:20.596102' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:24:20.599806', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:20.602994' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$v3cgtLMEzXlDjShnCcc6cuIwNBmld8rrOG5Y1H28Qa/qVT9RgVJbu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:20.619909' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:20 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$Qv0tpsX9quLmeqbMFZ294.pm1xzHY/tCWpE8dUSAu44NtVQqPMsra"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:20.638224' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$t6QUvYlKn6UnO8L5ImXLXObKukH4pWPSRbrO3ZuCe0VXUYx1KkS0y"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$WXmgDIDhVn8UHLtu6hGRD.R9OReiwXG3JSjMKc/Dnhcro.O5VYL8a"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$CZTAdB99h.hWMb/dtdYZD.lFh8LX.FlMwxDdRn7fm0IdlHdVIzHAW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$LykZQrUynYJt/BZHqeYG3eZE.hPryjLb.pkQWCzX4DgY8C55ouZUC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$VsvZK97mN1XI7zaTZjVgXenKrfVks3BRJ3FmvBWaYkqJFue7oPg0."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$4Hu9KLgGZJxZtCnAp2LLseetM9BY.FteFhLwNEMQH76nDTgwTquO2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$LeDa91RtYa434BqUgiI9W.VIfwCNObnO.vob3Nu6xtV37ynXv2rF."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$VS1Gf22QZ.JtZPQQ8s0mE.VVZlhH7NjVJEMYCzx6fTV1o0AP4W.qC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:20 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +Connecting to database specified by database.yml +  (5.3ms) DELETE FROM "users"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.6ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$U0R23haQZdB9IOBBb6Kd0eFuNF7AZ1HPscmdBxr7I53vw97cCb3yu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:56.697175' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$saV9Z6MQ2XaUuB6tKDEv1ursO1fUwyxa.nuMTSU7GxHLsU1iV5ADu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:56.717107' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$9x5DKO1md9PTheATtQsvmes2jCJCpPw1RD4d/eVgPnmGtj8i4OjmO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$qhB1/aW486TvFHncPIxmdeLCBFY2GVjyFk1eD8A1auHg2iATzAW6G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$Z3NA6PjqlvvNPdWYAKwMN.Po3KbQBn1hygrHqhDPNhbFUGgduf3z6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$CjPOE2UeitgGySjyvTmtg.QRHMNvGzkeFpkOeDTsaFmtdjI41CWCK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$JstabE2hOGt3TGPMEfPF4OtlElOFDgjyY8x7d6bTIJVl81S1K.Wk6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$CtenWNcf5QDLSEOWoGK89ewRMoXKZ30okiO4MdiuRAwMJCJB9ggc2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$Ghv68h5lI1j6vQ7BOpM82OrPVvQLGc.yRTAPZiyxCZZpS9a2ASi4i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$MY716zO4UgzXPh.u06Fg.ONGByA2ijefeFTqsupTgY5Q2R4D3Og4y"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$sgGIjw7n.XQ3.55aChwejOgkDzxEO3.VLxqrRlMVP3.U3fMblwZSC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:56.793186' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:24:56.797319', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:24:56.799978' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$zVmVusQLBLWQ9NdEN92rgui2G7HQeA.kii56xlERB.57OLy666Yqa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:56.816566' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$mOq3fx2J7ykWQ5xjDn2F..7/npJypOdrj9jxHsJYqrdum7TKe4MYy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:24:56.828030' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$KZc7e.06N02gepWtCP7dle3KGj/sPv3nI3lHuhqammQv5.C8WHP2G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:56.844043' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:24:56.848052', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:24:56.850461' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:24:56.853265', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:56.855643' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:24:56 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$1n0Vc2I3KK0FZQc46o4ueuuCU/tmX0qV9feZ6wPN7AlRldpLeq/Em"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:56.871978' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:24:56.876057', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:24:56.878579' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:24:56 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:24:56.881430', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:24:56.883802' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (5.3ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.9ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.6ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:11 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:11 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$jDpSEiNV479oxCmxwNb16.3Yaq.Ajq71X.9B.sC5dGxdSRBFzMwIO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:11.948591' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:25:11.953665', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:25:11.956324' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:25:11.960082', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:11.962638' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:11 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:11 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$Sr4dtDCg518vUjpdrF3O5elBdEY2a.46RvaOuC4WhX.TK6W4fmZMG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:11.988254' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.4ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:25:11.992564', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:25:11.995046' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:11 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:11 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:12 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$wi87joHdLebH2ZF78Ys6PuJYghMC/wjoeCkECGUP3XLj6D13MdGxG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:12.010815' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:25:12.014819', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:25:12.018761' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:25:12.022217', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:12.024809' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:12 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$QjX.bSzz7WWd.7pBcoKOV.hhX9JghcaF4ecWJfegSIvyxi/eHoFuq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:12.040631' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$GEVRSSPAQe8Mo4rv/axSnuPi.e3iNpsn3a2bppoiETZMeGIuCOR5u"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$hc5fVgb4hPpf.04BY20WmeJkCC.XDxQlAk/eFOCA2XXjjotBHs.96"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$EAIs/tpeoOq76ZZHQZycIexpmEc0g8iLqY6rhgQW.NKb69hYo4WEe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$uM/7MXJnU0wkMG4ykUZdWuQO5r1/tIkQrQN1Ij1B9lVwWCLqESQA6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$vB2l6egPJVGi0tQ9XITnLOG0qcFd/kTQFlQRqhivrQbL1aWmhtf1a"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$iSjWpc5BRnfqj50TOcv4bukA.GcAJmeD2jHV4qrqrLcuLIA.ZhPJu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$8ob56rBbkjAt/MagKn760OqMkC75fyD5Y29sStIlEdDRwgYbMHrEK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$nTLDIIt7TMRWRl7v3Sct1eBMLOIWWOpGDomcd7EYd0sGV1j6hls5i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:12 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$ckXYz7/kpkITeng8Y1rfOuhYaY8CIEwE6yTCopdlJOBaMYI2wuyuW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:12.108391' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$sxwdwib9TY2e8moRksWbI.7X3PSdwqLXH193iLyBx8P0eSkrnLf1e"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:25:12.118293' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:12 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$HscknnBgK2RHWJZLYdtGMeHb8bzFsT4oWz5xve5N0Sf0ok0kXetti"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:12 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:12.135892' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +Connecting to database specified by database.yml +  (5.5ms) DELETE FROM "users"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (1.0ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.7ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.8ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$Sj3DbXX86jRFJNjTLyvLWOSnYUBk3iKCPxj/F5lokWr.B3jn7zwzu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:48.579143' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$nYwdpkXbv4VW86lYt.NzbuJQPLgfvmKQ/ckpdqXIIq4XOx2buhyke"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$GY2G7m.D.zDUxaMqTCqPSuG9Aq5AKdn/sGWmlvf5XC.PVClyKBdQS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (6.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$p3WNNaiL12cJKq0ht3MRWOg9LBObCFPukHz4L7ZBbBlIpJglCuuKu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$xeqDRnpmVH1gUw/immaxQutT.Pu16vl2gH.d6OANEZVTN4OSs.5Oq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$2pA2kTmWM00kHjSO.H0QP.ZWtcZJkjIGSyqVF4GlYRI3ZWxxMCpAu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$MOGFgJvll.UdfNnMJ1TbdeVK532MW3YJ3r7/0Rd/AIg7JFLth7SVe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$v66kKKOL4smqsGbxfskcPONsr/K6eHjhXDlAMVjFdLIdDlbd.iaXC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$liPKGtoSgPn9ZDcnTXsBde9eioLygV5AvbInx.keJj.SOXBckEvvi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$YsCuwGtRWBWRSIIAqhdfyugMY0Hc8GzoAJUPwIE4JEXsRuyZ/R4Vm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:48.656729' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$rcLJKsw1Pom9DxHeWfCMEe/UQoorMdoIKjc3pcTfKPU73UIoCnCL."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:48.674708' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:25:48.679155', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:25:48.681685' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.2ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$Hsc.mXVXFpcPMkBYxK1HJOSCSy3u6dOOk49ilhBROxg2y1xufCxH."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:48.698316' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$nlaRiohu91eEUvu1vjIGeumrBljR1GzrOVhAhKhMpf5PyjdfF3NP."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:25:48.710834' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$V2A1o.O6nb9xPdW8xOKA6uKMbZX6iS8FGl083wVVGxhlPRRxIINFW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.2ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:48.729723' WHERE "translation_center_translation_keys"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:25:48.735537', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:25:48.738552' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:25:48.741857', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:48.744342' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:48 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$KJUgGYOZezBlPkZzyi7Uh.ZFgOy.EZaSD49o6gApAGWRpFpYHkAIS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:48.759309' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:25:48.763192', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:25:48.765577' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:48 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:25:48.768406', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:48.770849' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (0.9ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.6ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.5ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.7ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.8ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:59 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$lfMfgW9CV/QZDLk6r3EzGOHZYDzdBnWRqO/Hr6Pb3y1.CU0Fmznja"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:59.919985' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$cm4tHlR13A6jpASufFcfxOtmqOwi0dncxzOgqIt33GvBh65UjLOHu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$Ev0D9A9wLvkRIWZcZreWceLYXrbSYeO4mXn6ktugf1YSzZMyeX5hm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$9ZkDCmaw6MgAqQR/BGMlHOp01dy4c4bqL2MchohM5XIIXreHqUbpK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$flqzXYvHfQKKw7PUdBfFX.HKdsTiqk1GSvnX/w5DgnRZYJZIKHoGC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$qJaBv6QodBr8.wRefxL4POHmtElDt.gqxEZcUwQeMGrBYwERyhhA."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$ykjNdx5R5RJKhurmhwOEnuHB5xjGiJdKWRG1z/y/bT8YsaQbCHN9y"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$MVwcursiaTwlqco100YAIeyoGAWyUcmMjw77uA85uDlT5hCdtIhSi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$A36TjgaHrMPQSfGVnFltwuQ7BEoZ3Y.XhrWMOedtI9xh3VXHa8BzG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.2ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:25:59 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$C0plakdaWqaygmG7fjM8.ea4rWcL/a4xXyDrOYjVHRFvxjxT0iDy6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:25:59 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:25:59.996843' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$82dtbO0XNyUVN/sBy9L5UO2n7IwT4PKHRiN/dxZ4sKM8iHAmQnnme"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "last_accessed" = '2014-05-02 11:26:00.007003', "updated_at" = '2014-05-02 11:26:00.007179' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:00 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$PjRZRcreQAeG4WNslpKpyeJTZYmGsBkQsnJZ50Vd9aHkNXAhBiv7u"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:00.026106' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:00 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$.eUDFyxcre1G1HQOBZmRl.RMMKFcDWTPlceRp/iPUyoCJ0NLd1GWy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:00.044122' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:00.048491', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:00.051121' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:26:00.054121', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:00.056528' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:00 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$4hFvjUoe5bcdjiLqFjqC4OWq8NJ0vJT1XFSFSOMFgiUyuNUnDX.gq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:00.073272' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:00.077190', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:00.079493' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:26:00.082654', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:00.085032' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:00 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$LvuSKtGWwQSnliVL9egnRezZq28xfHnMZb7/49rjQbU92mYluvSgK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:00.104420' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:00 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:00.109269', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:00.112211' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (5.5ms) DELETE FROM "users"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (1.0ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.8ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.9ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.9ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.7ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.7ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.1ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] + SQL (0.3ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$cTV5CNSbkPj8pg7/v2x9Qef..jUAzTAYQvyf/nysevsnskodQ48E."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:14.740284' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$1caMlhndO1jG8oWMBE4hauaK6q3zjVT4ROkFD6ZydoeZsKdPuHkFS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$SLTHgAMwaVsP67UdUbHK/uadOMZZDuLSArYG6XGu8lvjY5oQZlg4W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$44q9AnHdlLrPPAjoo.oFmuHNowUkb/tqQ715CDEIRRW/Avg2LElme"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$nDky5oXPkWPTDMoYi/S40eCJnKkaCZYv4JS7qpiw2Omz.jB8hHtWO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$xDWIjf7w.L3ND4hXLVIGee1zphStFgZN2XMz7FZKahrjzuUI1nGvW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$.Y0sGep1pfPvHYnwsnz6oe.8xAegfHSd/Zct3HHK2At.Bf/KT2D6m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$/gZiAnu4zhgnOSTogssffeY3VG2e2YsntscNCT.1Pa/ldUoxfHFky"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$3hEXIYVHTObpQlQNdZMbrOMYD7ASZ..DMruu5fd0XzH95gP6aULEW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$rLx2Mwo06.BJW2C7N4DglO8Q7yL3kQ0uuJ2IWJvIHOTt8BwbZhiE6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:14.815503' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$iiCoWgmfgUDVkJOiPMIireASnF96ywKwd.zX0G3hBmHbywnIOdYSS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:14.832698' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:14.838155', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:14.841198' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$M8ypWyKZFEtPkc6/cSVsmOuvFu24KAss/cJXpeUw53w1.vmE1Cqza"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:14.859796' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$Y.xNiGzQka0o/YPLH63TgepD7afsn6PdgjZ8VA4RuD4B7kqjJD.Wa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:26:14.870567' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$OIK6.be/cvqJgdfeqCviaeKI6lJAG0iOCHXq5z46Z/mwxWvzs4c1G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:14.888811' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:14.892800', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:14.895269' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:26:14.898046', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:14.900404' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:14 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$8OwaYcedNpCeES8i18cThO91Mng6fzbR1gxoIlnd6ftNjG4tq01eK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:14.915341' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:14.919235', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:14.921614' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:14 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:26:14.924366', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:14.926960' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +Connecting to database specified by database.yml +  (1.2ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.6ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.8ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.1ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$9cgnkge6d1fZS6UpfslkUu5FOUZRL9yV0Wmv6hU49MhA8E0Szc5Jq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:33.125666' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:33.130959', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:33.133538' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:26:33.137038', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:33.139445' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$kX5SYgSPIhZjXd5RUsJ9T.AZ9mPgJyj56IRrlKmM3qd/Ai51MhLoG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:33.162117' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:33.166122', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:33.168708' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:26:33.171646', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:33.174111' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.2ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$d8/c/IOEvYxTDmx9EYCsLOiCCtZkvYb1YiX0h9HB0oZw4L.V8DDJ."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:33.193204' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$Htn/3Zov5X9S/uqPoRmcw.9AwuBscc1MrdX/Ee2h.uIkKAQYfCGym"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:26:33.205193' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$kujF3deFpqGCbWsiW2EU.ek2M8g6mfRjhYDdjRzPf/zF5EmnSfvWa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:33.221160' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$/vpzLHnUaUF8wyDcOT0RBOVdNCugkRERin./vj1gEUW1Jgd8H3cKy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$1JjAoJ2t4YSv.gknBbXv1.das2qdGKpiCxgmztne.i9bQh9bloSoO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$ACV/GzWvoqPLMPXsRsGhNujFG5cW1.FO/WkqK0y8iAG75nC24Hlee"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$vF2rsE0KRSCTLxX9MfeBXe.TNAe0/2q.L7cAVU0jnR5KXI7Yu.VuC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$bJbEvx375utp792DklIUj.1oRZJrXoUsEYPruVIUcE.3b1gD4S0Ja"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$6YNh3uPy/UwF/ZCzuw2HXewddIxpzumN8L.tUx04EEwBcMyUrHvsK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$T7gc1qavIeCkaxGVEzOO.epIwjHlyPb0TADDn/1MlNT1jY4W31ude"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$dW/9RZulN7OJ3338j3AsmOuJMyou0nU9ghZGJiq.o0r23BUGx0zia"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$UtAPEAWcetusLiDU6jvzJupsYWW067nCJDMEjT/6pQ0bSkqv4pYTm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:33.288405' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:33.292256', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:33.295318' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:33 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$VgvTACnurEqXpH.tfCl6UeKy0.WfEd7/.fS7XvkXPDgKXQnq4yrim"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:33 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:33.315898' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = 1 LIMIT 1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (5.3ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.7ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.7ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.8ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$y7CE3Giu5zQkMhdAjiGeB.uRrV4Hmdquwk7MtYzpt7qYUBn5847.q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:42.384243' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:42.389266', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:42.391866' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:26:42.395472', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:42.398013' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$rzTI.uJpbjrVQfJG26VVf.NfZ33gxZSWSh6AKtdihXjZBlmCwnkPm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:42.421579' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$kGQUfs5ZVAIGMdPtOWaJxeOOxfNjqAgZH9oqtYvo4Rv799K0VYScS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:26:42.431626' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$rJHbMsBX0Py7zCW32LAsYu5tgzENyzNxsVzOcxIRzzVn74gBj8s0W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:42.449993' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:42.455024', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:42.457880' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:26:42.461400', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:42.464037' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$o4g8rTkOcR8TWCFMteYBsu4XQDewoZ8FP40DUxZTN5UODO0GDZ0Cy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:42.482324' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$8J6E5TQLvX.L5VDwqL7Xvu4oBBwAWSI5UlntDoBXrd6pVvNecne1u"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$y3UCssSlFBNAldIHSXWdNe2s.fJG3SXE51FHkuOPD6P1D64vz/rWW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$S2Km6EvUitHYasbYNeLCdOop8kIumiwqs/an5v6ngOiiNcn4Qw6FW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$fVQXAnXFYF/lN6CnZfHe0uMvzpTI16Q/2CObnR/AdAQGQY1aFT7Mm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$VefJvQy/7Cdy9YeRXeMNl.OKxk5M8pgMl/1QSwQiD.V/bZQVvv50m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$mFY43YkD35ijGiCCKFlPwOtnnog27lOuCytli2AM/gZh0kCP3eBVW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$vPA.5PIEiNtm.QeXt/49J.Ymaagom..4B96lBpGr5z5ysQyuxhRcW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$1oV/i8sipeZkQ2X3RwQ.B.ROnhwJQrtJLD12MJts2weeTK5p7c6yG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$dJsHAF2939.QyPQ8vuVu2ea9EfOntVb.BK7NGKE6NW4wHer9HK4PW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:42.558023' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:42.561750', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:42.564202' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:42 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$l5gLBaqL8yyIeQ90ljCDF.Yq/wIcL9sC0uYfyJ4nzPbS.JJqrruw."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:42 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:42.579644' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = 1 LIMIT 1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (5.0ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.7ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.6ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.9ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.9ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.1ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (2.5ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] + SQL (0.4ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$3s1HQ.RThLfbAV5Z5qa/X.cpEKDBj5pJbsWaF5LDuBcLyTzkMo0hO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:57.575829' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$NzWt0NxMS7r8wBxPn8UzF.6GVSKtZcj1BtlJr3i46O2trycguEj5G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$S7zO4OgzQTUTFoY4Zejdy./ftO1uPFAw1LNZsGu8lm8QCGf0/ZgFO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$sIeol4ExmKh5Rpgy0WnJe.2wFF5sIV5bPAgDVKMH6a7YOqvh7lLAe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$wx3Yu7A3JwW44rN6/zWFF.SxQOogatfvtmd/GetnHFD7afph6ke36"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$jzfQ0OSRPrvpzl9JZhMVXO0sJEhczhVu9k8gvXQXKlvP2gTCEMPxi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$ZU5.vwz2Fmyh6bFhm7bxRu69Vai1/Ne1P84A8bLEBf4sUJElL9l1W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$tHldqw6SuXrpG5aEDSiTSut6Rexc6KaF2uIkojUS4yzLcccj5TyVO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$S4OoZN3DNcCJ2wIg/h7sXOQkhm2yzJ8mjCv.dbX.VRYmaxrLqpsBi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.2ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$VmKtyH7pn5JnEiiyO2.7X.DxJgMd1LFw4VUQsXgoP3IT25OGlFCVC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:57.655469' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:57.659582', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:57.662165' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:26:57.664956', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:57.667438' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$rfSCxvvaOYuUgxPgLDHxj.97SZLpmZ3XwDPFxlPJVYQn0Q.Ksh1My"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:57.682848' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:57.686534', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:57.689090' WHERE "translation_center_translation_keys"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$XuzR45w6jRo9sxmIF7kIYOSs6AlQbfjMpMYL4V0gTJtWSovQ4ebtm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:57.706470' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:26:57.711271', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:26:57.715006' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:26:57.718248', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:57.721148' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$m.UNH7xFJQhhgtZ6/585Q.SjAupt/dRmLcv3SSiuUWBspO5uC8Y7O"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.2ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:57.739505' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = 1 LIMIT 1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:26:57 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$XtYusnSwA8kcIjo.ksVYmOOfg3sLOhz0n.3dsKLmnCY6nSKGM0ViG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:26:57.766013' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$ZR.PtLEbgqslP.Pt9mV34uxf2wSMsvcwqZTUo9GJtosC2iKPvPeH6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:26:57 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:26:57.776535' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.5ms) rollback transaction +Connecting to database specified by database.yml +  (1.2ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.8ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.7ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (1.0ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.8ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$xQMMLfzMV5GVgH5NWt429OqkAJmysXDD0iKNg4gCj1FiO90.AxOc6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:27:38.119019' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:27:38.125516', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:27:38.128253' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$8H1.753PvFIH5Ar5LwxwQ.uj/FUeEcABnWvFdA8b8jHrqOucOjhu2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:27:38.147254' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:27:38.157007', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:27:38.159449' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:27:38.162189', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:27:38.164742' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$5bRCRz.vq7jY0ZlSRFyjTelXrNRZbzxXTxJgMp0XtF2C0GXcgao0O"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:27:38.180435' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$vuiTYuuFG3.DFXR3TGM59.D.EuHbRpd6PgkKBeGgLQXeYBmC/vrRy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$2P7dQrjhhZldQg9jDf1dqenQ/aioSk7h7stU12VXXp14YH3Z6BG7S"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$NwTtV19HnCbNzP3ypDVbL.JMnKeOPOua188zVy61z9VoBZyEL3Wzu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$FGFNRKZtI3wGz0lQq.lBDeIlYeYgVq2w5e29UaBE85EDaj6CsH5r2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$Fe8OqA2Pn3p4WcjEuuSZEekxZNjlxT1sqxzefaNcil9QO7o/kFfhO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$K2K.nywgdhBm8fzU/oE/Qe7.9mddeitIrCTmkXk9Dzkzbo3Z6qmDu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$K7lv6gOO4aZ1zMFYLL2YOufJ.0LU8rKuDg8j4mJN13..lX/6nRBdi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$r4tze3EFkZw1agMNrVQ6fOOYC8hUSjMb6oO4Gf8OUGa.SHaK7ho2."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$xDknP1ybc8rkf0QyoUlxUubNXeDGy0Po4hzkfgKf9rQ7zCrXXGMPy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:27:38.246941' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$yct8C5idJooWqsWm03ka3.Ie0JT1n75f8qgQGsfFeNf7AcZ1x9Q.u"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:27:38.257223' WHERE "translation_center_translation_keys"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$gw.azmzWyhJFsBV4GvCYb.QnHqyKO88xtnPKt0HP.26vTBYsZSnVK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.2ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:27:38.274088' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = 1 LIMIT 1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:27:38 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$sYX9L4.SOW6lcydgRG6LweWNUkwxD9o9jvUko1mERJEW5yTkTk3cu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:27:38.298310' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:27:38.302327', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:27:38.304870' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:27:38 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:27:38.307695', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:27:38.310120' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (1.5ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.8ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.8ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (1.0ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.8ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:39 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:28:39 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:28:39 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:28:39 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:28:39 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$l50ARJGPucAeshGgWoBr/e5z7zN0cZC/C7cRmg5d8aUBTlrDMAC4O"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:39 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:39 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:28:39 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:39 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:28:39.994128' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = 1 LIMIT 1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:28:40 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$IEyHEPyQ2e1FUyrIHfqCBeYclGiiiodlN8uGtYi96QxR3AZ4Rqvwi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:28:40.030077' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:28:40.034702', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:28:40.037320' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:28:40.040953', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:28:40.043608' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:28:40 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$hktC8bGrcspUkMynH3YlQ.nDJ/1yaBRYfIE.cwnptW2hs5dyfmNmS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:28:40.064214' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$tvKJgCtOSmKa8jr04AOvHOaSzkB.T/apQipB7CXzcwhr8rjRzXAQi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:28:40.075792' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:28:40 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$r9PemXCeqXCoCnwBgZb79OfkTWzZwblRT1tKqFdF5RFwfbTS./BJy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:28:40.093901' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:28:40.098181', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:28:40.100719' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:28:40 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$Sg8JMIIlbBIy2UeJ27imiuON2n3I5KJT3Ogw1SLucJC8Glhmf6h0S"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:28:40.116351' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$KK4YtiknBIZtBdO78UEnPuiiG0oGJE.4HLMu9CNWuUHh9v7aoDrEO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$cvcLxLGP.OH/S0WHAtLBeO/D66Z054F/K3t1wZ8ePtJ6KHuKkplz2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$bOUk/4T9vYMV5tWXdAPlnO90w6xaz1NfqP7lyNgI1lKstAFx7B6Mm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$Gi5MFnw5vd0R.pAjbKGfJutyH4nRLhKuhaKNGt7Ge0EOX0kq/fJ0a"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$zBp4j8sTNV1bL6gQczpLSevb4TTEAO09SqwmaLINXWFoF2jOX94DW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$9597r6fcWiWB0cAov3tKmOvLecIx6oY/Ca2H9gHy9.r/XYddWPSz2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$uq6x8.uxMu38A1oryyNPFOmkv75hai/mnrQegHZ.iPwycwPQRNizq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$QHy9vceZhV0mszkSo8BnxesxajHpqHuLutzGOoccf6.kz68c3uYFi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:28:40 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$uTcwapath9.M8Rt7GUYAPu0qAq4plnrBZ5T196pamDdu.4OQ7Szd6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:28:40.182857' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.0ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:28:40.186675', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:28:40.189123' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:28:40 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:28:40.191994', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:28:40.194494' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +Connecting to database specified by database.yml +  (5.4ms) DELETE FROM "users"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.8ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.6ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.8ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.9ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.9ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$Ldud/BOFLmSmE374dprFK.t/9nUB6l1rE5w8dxDRmqI.LejkuIVCe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:30:37.208511' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = 1 LIMIT 1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$iAqSDma00qinS8UbR9A.zeL4RxD5vSqEqbhs3HYdM0OOmuHEKh3cu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:30:37.243859' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:30:37.248093', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:30:37.250527' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:30:37.254244', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:30:37.257361' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$o5WyLdh9xaQaqis608lfF.7OyUCIcQebsXWao5YFlpXMIFasJVbTq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:30:37.273805' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$a4O.nDGSIwuxdLm/MGdpVem6WzqyU9kmBTyfRHujb6l1QvJzBzPXe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$M7Ets/oe1.Azoqz4DW9QUO4AlPQBu2jWyqVYzc2ibG0QCCA1DSMYa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$2PyqNtoE8SHqSettraJMZOwVfApes0a.GfIJ.O8W6pFWYOJW.3GP6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$p3DboDOH5JAozBThU.VdzuH.x.TY/whM8vsZi942YN5bmt9ytyciu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$UCpQtcoJXsUVK.wiscj7g.L6pxNLoR7uaWiX7xi8P7/QY/KKOokqS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$as8GnuaISCks.ZGRWNu7e.aQwn7vfcpnggTuZomD.kBXLu1W2U/Wi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$mvdN1QF2NAzSUdReps4GGeTZwCssniLx5phSRBZfmsz.cN7kCleem"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$saxed.96w/tCtBUh1ZUb4.FwmrWJQ9IpKsDN563dl1YSk0deMonAa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$ihEEMsvs.Z5Z7A.eK0IlOu5D4ZjbajosyJK6Nx6KjIEbOzqSUBjYq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:30:37.344415' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$vLDWeDh9tqWJE.SYRCL.ZuGnfybjoljI/QevsZLS8px82Hx5R5dO6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:30:37.355355' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$X7P33lYyendwajpalgqqlO9.agT.JGyjumZVkmU5Di15O/CMzfh3C"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:30:37.372439' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:30:37.376190', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:30:37.378618' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:30:37.381382', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:30:37.383945' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:30:37 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$kyK9D1aDPr4Gmb6MvTueaO27192KosNsAnfONmp/9vbAssj9/caSC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:30:37.399622' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:30:37 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:30:37.403586', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:30:37.406290' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +Connecting to database specified by database.yml +  (5.5ms) DELETE FROM "users"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.9ms) DELETE FROM "translation_center_categories"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_categories'; +  (0.8ms) DELETE FROM "translation_center_translation_keys"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translation_keys'; +  (0.9ms) DELETE FROM "votes"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'votes'; +  (0.9ms) DELETE FROM "audits"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'audits'; +  (0.6ms) DELETE FROM "translation_center_translations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'translation_center_translations'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (1.0ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+1@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+1@example.com"], ["encrypted_password", "$2a$04$YkAuJ.6xSYsw4puMXDg/SOrX6K.QE1FemWrlDog.2gZC1l0lijnoa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:31:25.593392' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:31:25.598662', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:31:25.601308' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.0ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:31:25.604947', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:31:25.607775' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+2@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+2@example.com"], ["encrypted_password", "$2a$04$MdbCaLxAsxAr/2th0NjxjuKP56l8w9zAOtkRSDMwx8ijCMjabOaeK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:31:25.633440' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:31:25.637416', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:31:25.640016' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- accepted\n- pending\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 3]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'pending', "updated_at" = '2014-05-02 11:31:25.642910', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:31:25.646043' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+3@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+3@example.com"], ["encrypted_password", "$2a$04$9zb7FvxKaSTNcOup4faL9OBabfN9Hwiaaws9Q9u5sy.jb7758oUH2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:31:25.665539' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."status" = 'accepted' AND "translation_center_translations"."lang" = 'en' LIMIT 1 + TranslationCenter::TranslationKey Load (0.0ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\nstatus:\n- pending\n- accepted\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 2]] +  (0.1ms) UPDATE "translation_center_translations" SET "status" = 'accepted', "updated_at" = '2014-05-02 11:31:25.669928', "value" = '--- Whatever +... +' WHERE "translation_center_translations"."id" = 1 +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'translated', "updated_at" = '2014-05-02 11:31:25.672485' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] + SQL (0.2ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+4@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+4@example.com"], ["encrypted_password", "$2a$04$M3//SKkxPBLl.YEhx3VNIudleJx8uUEXrpfhcqq.jaUz8YflfAUGa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:31:25.692307' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+5@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+5@example.com"], ["encrypted_password", "$2a$04$2iIMYBoNAYH95meTfqZosuZ4Fz/YP/0QGvt4ymz8KeeWpjRYSmakq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["value", "--- What ever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: What ever\nlang: en\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+6@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+6@example.com"], ["encrypted_password", "$2a$04$U6k7s0P/6kx2Imy2QgY27OYThFrzR9G2cor6tX3URo3Jj6HhRPD52"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+7@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+7@example.com"], ["encrypted_password", "$2a$04$NLv8i8KpfYREBkuqOlZseeajpV2B69cThSHLjbx.pQaEgONh9LK8K"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 4 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 4], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+8@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+8@example.com"], ["encrypted_password", "$2a$04$kA1AX8xR7O9d1EWLNPpFo.z03BtPtnS7MVWT7H9pAbjXNgjWC4TDK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 5], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+9@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+9@example.com"], ["encrypted_password", "$2a$04$iHzIHMZFzjTxcGk83cQH8.nVuPbn66c6IWDlwtX.FxIhBPcPN3FW6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 6], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+10@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+10@example.com"], ["encrypted_password", "$2a$04$SennFefwWzeQJciMKRSms.ugO7bdv05Stwidn3uRTt9L8SGWwcY9e"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 7 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["votable_id", 1], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 7], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+11@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+11@example.com"], ["encrypted_password", "$2a$04$HSx9s1YVOmFbcNgmeED3DetV2Iov5PpKBryVtdS5XleSdd.hwkh2."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 8 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 8], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+12@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+12@example.com"], ["encrypted_password", "$2a$04$Ryhtyb5g4HUqNtrmpKr8gejwQNDpgnuBGno.VoJjQJuGXjZJwk59S"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 2 AND "votes"."votable_type" = 'TranslationCenter::Translation' AND "votes"."voter_id" = 9 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'User' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["votable_id", 2], ["votable_type", "TranslationCenter::Translation"], ["vote_flag", true], ["vote_scope", nil], ["vote_weight", 0], ["voter_id", 9], ["voter_type", "User"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc + TranslationCenter::Translation Load (0.1ms) SELECT translation_center_translations.*, count(votes.id) as votes_count FROM "translation_center_translations" LEFT OUTER JOIN votes on votes.votable_id = translation_center_translations.id WHERE "translation_center_translations"."translation_key_id" = 1 AND (votable_type IS NULL OR votable_type = 'TranslationCenter::Translation') GROUP BY translation_center_translations.id ORDER BY votes_count desc +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.2ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+13@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+13@example.com"], ["encrypted_password", "$2a$04$aQBfVyktnN.6jAq6Ei09yeRIDnZuXtTI6ALcBizb/LXK/8ULi19Bi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.0ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.3ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.1ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:31:25.765306' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + TranslationCenter::TranslationKey Load (0.1ms) SELECT "translation_center_translation_keys".* FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."id" = 1 LIMIT 1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::TranslationKey Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translation_keys" WHERE "translation_center_translation_keys"."name" = 'whatever' LIMIT 1 + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + TranslationCenter::Category Exists (0.0ms) SELECT 1 AS one FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "general"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] + SQL (0.1ms) INSERT INTO "translation_center_translation_keys" ("ar_status", "category_id", "created_at", "de_status", "en_status", "last_accessed", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["ar_status", "untranslated"], ["category_id", 1], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["de_status", "untranslated"], ["en_status", "untranslated"], ["last_accessed", Fri, 02 May 2014 11:31:25 UTC +00:00], ["name", "whatever"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'ar' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+14@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+14@example.com"], ["encrypted_password", "$2a$04$NElL1FDOU2VBBrVBm4VTWub5HbxN06PxrK57B0gr8w2wl9nxYs/oa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."translator_id" = 1 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.3ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["lang", "en"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 1], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["value", "--- Whatever\n...\n"]] +  (0.1ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 1 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.2ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 1], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Whatever\nlang: en\ntranslator_id: 1\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "en_status" = 'pending', "updated_at" = '2014-05-02 11:31:25.795419' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'en' +  (0.0ms) SAVEPOINT active_record_1 + User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user+15@example.com' LIMIT 1 +Binary data inserted for `string` type on column `encrypted_password` + SQL (0.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user+15@example.com"], ["encrypted_password", "$2a$04$mIyYJeEP//h3RBNxMUiRvuxSzdysMsA4tCWd16KEQNYbU2bMTlF92"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + TranslationCenter::Translation Exists (0.1ms) SELECT 1 AS one FROM "translation_center_translations" WHERE "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."translator_id" = 2 AND "translation_center_translations"."translator_type" = 'User' AND "translation_center_translations"."translation_key_id" = 1 LIMIT 1 + SQL (0.1ms) INSERT INTO "translation_center_translations" ("created_at", "lang", "status", "translation_key_id", "translator_id", "translator_type", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["lang", "de"], ["status", "pending"], ["translation_key_id", 1], ["translator_id", 2], ["translator_type", "User"], ["updated_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["value", "--- Egal\n...\n"]] +  (0.0ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 2 AND "audits"."auditable_type" = 'TranslationCenter::Translation' + SQL (0.1ms) INSERT INTO "audits" ("action", "associated_id", "associated_type", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["associated_id", nil], ["associated_type", nil], ["auditable_id", 2], ["auditable_type", "TranslationCenter::Translation"], ["audited_changes", "---\ntranslation_key_id: 1\nvalue: Egal\nlang: de\ntranslator_id: 2\nstatus: pending\ntranslator_type: User\n"], ["comment", nil], ["created_at", Fri, 02 May 2014 11:31:25 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", nil], ["version", 1]] +  (0.1ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.0ms) SELECT COUNT(*) FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' AND "translation_center_translations"."status" = 'accepted' + TranslationCenter::Category Load (0.0ms) SELECT "translation_center_categories".* FROM "translation_center_categories" WHERE "translation_center_categories"."name" = 'general' LIMIT 1 +  (0.1ms) UPDATE "translation_center_translation_keys" SET "de_status" = 'pending', "updated_at" = '2014-05-02 11:31:25.805729' WHERE "translation_center_translation_keys"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + TranslationCenter::Translation Load (0.1ms) SELECT "translation_center_translations".* FROM "translation_center_translations" WHERE "translation_center_translations"."translation_key_id" = 1 AND "translation_center_translations"."lang" = 'de' +  (0.6ms) rollback transaction diff --git a/spec/models/translation_center/translation_spec.rb b/spec/models/translation_center/translation_spec.rb index 5318056..7725522 100644 --- a/spec/models/translation_center/translation_spec.rb +++ b/spec/models/translation_center/translation_spec.rb @@ -4,6 +4,24 @@ module TranslationCenter describe Translation do let(:translation_key) { FactoryGirl.create(:translation_key, name: "whatever") } + let(:en_translation) do + FactoryGirl.create( + :translation, + value: "Whatever", + translation_key: translation_key, + lang: "en" + ) + end + + let(:de_translation) do + FactoryGirl.create( + :translation, + value: "Egal", + translation_key: translation_key, + lang: "de" + ) + end + it "should sort by votes" do # Creating translations high_voted_translation = FactoryGirl.create( @@ -31,20 +49,6 @@ module TranslationCenter end it "should return translations of certain lang" do - en_translation = FactoryGirl.create( - :translation, - value: "Whatever", - translation_key: translation_key, - lang: "en" - ) - - de_translation = FactoryGirl.create( - :translation, - value: "Egal", - translation_key: translation_key, - lang: "de" - ) - # Arabic translation expect(translation_key.translations.in("ar")).to eq([]) @@ -54,5 +58,44 @@ module TranslationCenter # Deutsch translation expect(translation_key.translations.in("de")).to eq([de_translation]) end + + it "should accept a translation" do + expect(en_translation.status).to eq(Translation::PENDING) + + en_translation.accept + + expect(en_translation.status).to eq(Translation::ACCEPTED) + end + + it "should unaccept a translation" do + en_translation.accept + + expect(en_translation.status).to eq(Translation::ACCEPTED) + + en_translation.unaccept + + expect(en_translation.status).to eq(Translation::PENDING) + end + + it "should flag the translation key as pending when translation is unaccepted" do + en_translation.accept + + expect(en_translation.translation_key + .status(en_translation.lang)).to eq(TranslationKey::TRANSLATED) + + en_translation.unaccept + + expect(en_translation.translation_key + .status(en_translation.lang)).to eq(TranslationKey::PENDING) + end + + it "should create one translation per lang per key" do + translation_attributes = en_translation.attributes.except("id") + duplicated_translation = FactoryGirl.build(:translation, translation_attributes) + + expect(duplicated_translation.valid?).to eq false + + expect(duplicated_translation.errors.messages).not_to be_empty + end end end From 6cf08366f639265f9ec908d10881568d0d8e3783 Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Sat, 3 May 2014 21:33:12 +0200 Subject: [PATCH 06/16] #19 Adding sqlist3 and log files to .gitignore --- spec/dummy/db/test.sqlite3 | Bin 102400 -> 0 bytes spec/dummy/log/test.log | 12264 ----------------------------------- 2 files changed, 12264 deletions(-) delete mode 100644 spec/dummy/db/test.sqlite3 delete mode 100644 spec/dummy/log/test.log diff --git a/spec/dummy/db/test.sqlite3 b/spec/dummy/db/test.sqlite3 deleted file mode 100644 index b5a366b14fa378007d84689624aa239ac9f32014..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 102400 zcmeI4-*4O26~{&YqAl5>lC&AjmNNN_AY|TEluSl=Gn2{8(*N-1WqLCf zexTn%dvZ^rXuk48Tm`MYo> z^M@YI^c7oYMfu{a(3&&M3VWb8D~7AzsWGkd(K&Z@tF*FHQr0%Fl|EDoi8=-4=4K#t z3d(%6xKemETHSrvUnW{(w1^- zYwgC$)}FFn+EZ3`cW$n2lGcsV=8m#?lm72+Y{WYCR1MQ*Rc6QJ+!*CRx65~Rdwy|w zS@nt?$0{4T%PLwzuTzk!*mRhkP~oDUl})|Q3SHfoUBfcF#onNhNo1*6Wdzw}4_vbL zfY}bOANZ$SD_vjN-PlozR9Lp^b!NI@TlM~+5t7=XqM@{@gt_9>1L(<(Q`c%FwH4j4aQaS@n|}6V}9K6CcUuh zSm6a-_=)rPKL<7x)Ydy^MESlfv_9_P4Ij$3>9*F(6RDpk12oj_g&#xrbSsNtG0Vs)hkN4Wi$OO>!saoT~M8n z;piTZSl%yxnGQM+79KA1g6i1o4rzwHM^>Fsnz|Zzoh8=}U)Hm__EAl*7L+@dRb#pt z5AWoJ_L|b}GoyN!W^`vEOq=J?1+>}lW1D)IQO$MBBW_9wt`m1HIPlUW{wB*mfTWZ!khWLi zxdt;UhFP7XL3&Q)=9DOJZwp6P2SBcolYOxBD%s zF4N}3XzLF5AmYbN?b)oGW;o8Q^8CPCk0wQVbyYZ|PU%1tHXVuazypJ&q3#q;^@ZH2 z`z7K{*~r@ym}owGg10tAQND0NIP_Oa-FA&~jXB}($+%0Q_(aybhFj~NePxT55%2gC zoOPaW^0dxP(Bz@5X*IGnd2^W`VCW#kT&+Qezx$S5(Ol~uGkKvHxVgKzc6+yd{^d<* z&(!w!Bwod1lGZ^%W#gi}Og81xY+`lYsPP6S1~GzHPxR``)LUZ{^2Lk79*<&YzeYz% z&0+gZX3`vse;khuYoc)8o5in^rg|if@@@3fI&YI($zR4|`h~Xt$KFN*ccN$0&XPJ8 z4P)}ce%SDKs&M?`YjzK{)DcN;ory{g#bazgq*+9#X;!~O`(0XmQn_PPO}a{HWs4T4 z_Ws*8iXYUQw(YeXR*mks)B;}*dz6(EszxL3d{RB7Jk9PX-#*KPI3mh#UlLlEcnmj9 zgW`(L`gdsnwYpKY`I*4!5{#zCbT4&3uDcrXW>$CwQuhT>zC?zc^~1cc1talLeP-ja zxZrT;R{cVDhF){hn;Ge!(&y5jq|c;ZNZJ{w4ui?1&fm%hFHdVVU9Twb`cuylEO>2iLu zEg`if`j;0wlHwbeuPiL)ClZo{{CHeayqq6PNS5-W3CUu9Bq~|FQe4OjG0E!-3t1Y) zoK*Dg|9_GGDE(IYx%6Y{`;sBOFI^=uen0>OKmY_l00ck)1V8`;KmY_l;8YSgH>wKp zTYs)CYG3=aZBhH)KNS%L7yrqq$iMlEU804Fq^Nj#yi2q+)+JgTjf=eN|H#=k0w4eaAOHd&00JNY0w4eaAb|TnVgLj{00ck)1V8`;KmY_l00ck)1csjg{{H{) zk1;$10T2KI5C8!X009sH0T2KI5C8$({}BTq00JNY0w4eaAOHd&00JNY0w6H_1aSW! z{xOD!AOHd&00JNY0w4eaAOHd&00JO@`#)j;1V8`;KmY_l00ck)1V8`;KmY`Wp8)>; z-|&wyJOlv{009sH0T2KI5C8!X009sH0X+Xl41fR#fB*=900@8p2!H?xfB*=9!0;2m z{eSq!7#@NE2!H?xfB*=900@8p2!H?xfWXYmS2I)N^O=dKqAC6>JCfbW{w{ZG`jzqd zGe4SoKl`)XO773oKb@&cFH1ihh}OO!%9kz)t+TFvr^cM}T~^n%x>2=t*RV{dOE7YE ztF*FHQg&9}+bAi8uJVF1UpQd4L&^o^K)1_xb$fnsd0AC9Z|*3YyBiy7OB@m9x2exd zhFM_`nx?VeWLj5CU4qe|>)p+@+q)%YZSz{`L#5D5y`bFO>|>vLB#w%*EDN93x%W+n z4CgOnaWA>d^USCesNbE^YH3TkwY7F*Wou7aFYPHSyE`}6Hc9D5X_LGRJbhIu5KW_& z0CBB!ePwrJN12<8)ilfY!-mT$T0?i7`<6{z#rUPG+00>XTSarNdn^H-tVmRHnCWV| zTTm*x%Uq+*c$GS<-(j{^wi!t)$#Tc2nwnv1WvgkDreV6Q%4{Vxsz^99B*A zP}7~BWl2?|5qF+ikEy4Wr`a9l+iZB=#{FuStGC7`lpnQ8;hvgp)K?HZID`ve3%$Am=X{k0Z@8H69lH(?n`er&ad@x*dvsWT~xl6QaCL z{j8?-lNfj&9lQl`kZ#ko6IP^FQCl0LC||fB9NyzRb=x({w77)7Cu0N)q4-1-%r)E^ z>k5|g<6BdNWm|Y6atmBrH=P<^(zG(gD8+eHbdNoBqMv(I$;Ry-K;uL%c_Gy85e0A6 zvL9;R5){n7a8~GL3Q~trL1aQRQ*&J1Z94I$+B0^J=5auURpz|un=QZt#6FT6ef=xQ(L zqdc(ZKXT8009s<#ROWWJSn$E*M-B` zNLEDj>)-At{EnBG5v}5XLmZW)D9r}nS_jEU{$r^=I_Vwxi4}cRy|2BaRf2D^)z3YV z1Eo8bRb#ptv_Z*_RuXbpbe|d3yPb?X5=XGK6MhCx)KOcnOpCHk31i!l!SjsfV;8z> zP@5Wd{<=E-FTs1T(l6KdTr%rTA;I+yIPdAOH>qQDu6;mE8b5YOAskwrB*~{JT zdTPy$rVLn0$u_Hu@&bdDlXkjxYErLNuk-wrXf84hh0W@;W@vh)LWwnr978HjTccF# ztSDckZDWqdUx#7mqjN4ER*5=(uy7%DIbVnr^L3>2nFCXubE5njb@-a!Lu6FE#B;x$ z^NAi4mAbl&l>2>l1b(OAJuk{%qfV!Ir~Zg`x_dF+U8gwNQ5XsYvl9Y%{(p*ZHE Date: Sun, 4 May 2014 01:05:29 +0200 Subject: [PATCH 07/16] #19 Adding translation_key model tests --- .../translation_center/translation_key.rb | 22 ++--- .../translation_key_spec.rb | 82 +++++++++++++++++++ 2 files changed, 93 insertions(+), 11 deletions(-) create mode 100644 spec/models/translation_center/translation_key_spec.rb diff --git a/app/models/translation_center/translation_key.rb b/app/models/translation_center/translation_key.rb index f454f46..2e577c3 100644 --- a/app/models/translation_center/translation_key.rb +++ b/app/models/translation_center/translation_key.rb @@ -6,31 +6,31 @@ class TranslationKey < ActiveRecord::Base PENDING = "pending" TRANSLATED = "translated" UNTRANSLATED = "untranslated" + PER_PAGE = 7 attr_accessible :name, :last_accessed, :category_id + + # Relations belongs_to :category has_many :translations, dependent: :destroy - # validations + # Validations validates :name, uniqueness: true validates :name, presence: true # called after key is created or updated before_save :add_category - PER_PAGE = 7 - - scope :translated, lambda { |lang| where("#{lang.to_s}_status" => 'translated') } - scope :pending, lambda { |lang| where("#{lang.to_s}_status" => 'pending') } - scope :untranslated, lambda { |lang| where("#{lang.to_s}_status" => 'untranslated') } - + scope :translated, ->(lang) { where("#{lang.to_s}_status" => TRANSLATED) } + scope :pending, ->(lang) { where("#{lang.to_s}_status" => PENDING) } + scope :untranslated, ->(lang) { where("#{lang.to_s}_status" => UNTRANSLATED) } # add a category of this translation key def add_category category_name = self.name.to_s.split('.').first # if one word then add to general category category_name = self.name.to_s.split('.').size == 1 ? 'general' : self.name.to_s.split('.').first - self.category = TranslationCenter::Category.find_or_create_by_name(category_name) + self.category = TranslationCenter::Category.where(name: category_name).first_or_create self.last_accessed = Time.now end @@ -47,7 +47,7 @@ def update_status(lang) # returns true if the key is translated (has accepted translation) in this lang def accepted_in?(lang) - self.send("#{lang}_status") == 'translated' + self.send("#{lang}_status") == TRANSLATED end alias_method :translated_in?, :accepted_in? @@ -58,7 +58,7 @@ def accepted_translation_in(lang) # returns true if the translation key is untranslated (has no translations) in the language def no_translations_in?(lang) - self.send("#{lang}_status") == 'untranslated' + self.send("#{lang}_status") == UNTRANSLATED end alias_method :untranslated_in?, :no_translations_in? @@ -69,7 +69,7 @@ def has_translations_in?(lang) # returns true if the key is pending (has translations but none is accepted) def pending_in?(lang) - self.send("#{lang}_status") == 'pending' + self.send("#{lang}_status") == PENDING end # returns the status of the key in a language diff --git a/spec/models/translation_center/translation_key_spec.rb b/spec/models/translation_center/translation_key_spec.rb new file mode 100644 index 0000000..b841306 --- /dev/null +++ b/spec/models/translation_center/translation_key_spec.rb @@ -0,0 +1,82 @@ +require 'spec_helper' + +module TranslationCenter + describe TranslationKey do + let(:translation_key) { FactoryGirl.create(:translation_key, name: "whatever") } + + let(:en_translation) do + FactoryGirl.create( + :translation, + value: "Whatever", + translation_key: translation_key, + lang: "en" + ) + end + + let(:language) { "en" } + + context "update status" do + it "should update translation key status to translated" do + expect(TranslationKey.untranslated(language)).to eq([translation_key]) + + en_translation.accept + + expect(TranslationKey.untranslated(language)).to be_empty + expect(TranslationKey.translated(language)).to eq([translation_key]) + end + + it "should update translation key status to pending" do + expect(TranslationKey.untranslated(language)).to eq([translation_key]) + + en_translation + + expect(TranslationKey.untranslated(language)).to be_empty + expect(TranslationKey.pending(language)).to eq([translation_key]) + end + end + + context "status scopes" do + it "should return the untranslated English translations" do + expect(TranslationKey.untranslated(language)).to eq([translation_key]) + + expect(TranslationKey.translated(language)).to eq([]) + expect(TranslationKey.pending(language)).to eq([]) + end + + it "should return the pending English translations" do + en_translation + expect(TranslationKey.pending(language)).to eq([translation_key]) + + expect(TranslationKey.untranslated(language)).to eq([]) + expect(TranslationKey.translated(language)).to eq([]) + end + + it "should return the translated English translations" do + en_translation.accept + expect(TranslationKey.translated(language)).to eq([translation_key]) + + expect(TranslationKey.untranslated(language)).to eq([]) + expect(TranslationKey.pending(language)).to eq([]) + end + end + + context "predicates" do + it "should be accepted and have translation in English" do + en_translation.accept + + expect(translation_key.accepted_in?(language)).to be_true + expect(translation_key.has_translations_in?(language)).to be_true + end + + it "should be untranslated in German" do + expect(translation_key.no_translations_in?("de")).to be_true + end + + it "should be pending in English" do + en_translation + + expect(translation_key.pending_in?(language)).to be_true + end + end + end +end From 3928486ed040cb6c8bc58e9783478e87baeb267b Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Sun, 4 May 2014 02:40:24 +0200 Subject: [PATCH 08/16] #19 Adding AddLangGenerator rspect test --- Gemfile.lock | 4 +++ .../add_lang/add_lang_generator.rb | 7 ++++-- .../add_lang/add_lang_generator_spec.rb | 25 +++++++++++++++++++ translation_center.gemspec | 1 + 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 spec/lib/generators/translation_center/add_lang/add_lang_generator_spec.rb diff --git a/Gemfile.lock b/Gemfile.lock index c609367..16a308d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -80,6 +80,9 @@ GEM railties (>= 3.0.0) font-awesome-rails (3.0.2.0) railties (>= 3.1) + generator_spec (0.9.2) + activesupport (>= 3.0.0) + railties (>= 3.0.0) haml (4.0.0) tilt haml-rails (0.4) @@ -168,6 +171,7 @@ DEPENDENCIES debugger (~> 1.6.5) devise factory_girl_rails + generator_spec rspec-rails sqlite3 translation_center! diff --git a/lib/generators/translation_center/add_lang/add_lang_generator.rb b/lib/generators/translation_center/add_lang/add_lang_generator.rb index 05578cb..1f7895f 100644 --- a/lib/generators/translation_center/add_lang/add_lang_generator.rb +++ b/lib/generators/translation_center/add_lang/add_lang_generator.rb @@ -18,13 +18,16 @@ def add_lang langs.each do |lang| @lang = lang # check if language already supported - if(TranslationCenter::TranslationKey.column_names.include? "#{lang.downcase.gsub("-","_")}_status") + language_supported = TranslationCenter::TranslationKey.column_names.include?("#{lang.downcase.gsub("-","_")}_status") + if language_supported puts 'This language is already supported, just make sure it is listed in config/translation_center.yml' return end # Generate migration templates for the models needed - migration_template 'migrations/add_lang_status_translation_keys.rb', "db/migrate/add_#{lang.downcase.gsub("-","_")}_status_translation_center_translation_keys.rb" + migration_template 'migrations/add_lang_status_translation_keys.rb', + "db/migrate/add_#{lang.downcase.gsub("-","_")}_status_translation_center_translation_keys.rb" end + puts "Language(s) added, don't forget to add the language(s) to config/translation_center.yml" end end diff --git a/spec/lib/generators/translation_center/add_lang/add_lang_generator_spec.rb b/spec/lib/generators/translation_center/add_lang/add_lang_generator_spec.rb new file mode 100644 index 0000000..1aba81e --- /dev/null +++ b/spec/lib/generators/translation_center/add_lang/add_lang_generator_spec.rb @@ -0,0 +1,25 @@ +require 'spec_helper' +require 'generator_spec' +require 'generators/translation_center/add_lang/add_lang_generator' + +module TranslationCenter + describe AddLangGenerator do + destination File.expand_path("../../tmp", __FILE__) + arguments %w(fr) + + context "add language" do + it "should add a French language" do + prepare_destination + + run_generator + + migration_path = "db/migrate/add_fr_status_translation_center_translation_keys.rb" + assert_migration migration_path + + # Cleaning up generated migration file + FileUtils.rm_rf(Dir[File.expand_path("../../tmp", __FILE__)]) + assert_no_migration migration_path + end + end + end +end diff --git a/translation_center.gemspec b/translation_center.gemspec index f1eba15..c307bc3 100644 --- a/translation_center.gemspec +++ b/translation_center.gemspec @@ -28,6 +28,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'rspec-rails' s.add_development_dependency 'factory_girl_rails' s.add_development_dependency 'database_cleaner' + s.add_development_dependency 'generator_spec' # Dependencies s.add_dependency 'rails', '>= 3.1.0', '<= 3.2.12' From 79d1e1c318415917ff74b29e906bab4face53a35 Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Sun, 4 May 2014 14:14:59 +0200 Subject: [PATCH 09/16] #19 Bumping Rails version to 3.2.17 --- Gemfile.lock | 80 +++++++++++++------------- spec/dummy/config/environments/test.rb | 2 - translation_center.gemspec | 2 +- 3 files changed, 40 insertions(+), 44 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 16a308d..1703982 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -10,18 +10,18 @@ PATH haml-rails jquery-rails jquery-ui-rails - rails (>= 3.1.0, <= 3.2.12) + rails (>= 3.1.0, <= 3.2.17) ya2yaml GEM remote: http://rubygems.org/ specs: - actionmailer (3.2.12) - actionpack (= 3.2.12) - mail (~> 2.4.4) - actionpack (3.2.12) - activemodel (= 3.2.12) - activesupport (= 3.2.12) + actionmailer (3.2.17) + actionpack (= 3.2.17) + mail (~> 2.5.4) + actionpack (3.2.17) + activemodel (= 3.2.17) + activesupport (= 3.2.17) builder (~> 3.0.0) erubis (~> 2.7.0) journey (~> 1.0.4) @@ -29,21 +29,21 @@ GEM rack-cache (~> 1.2) rack-test (~> 0.6.1) sprockets (~> 2.2.1) - activemodel (3.2.12) - activesupport (= 3.2.12) + activemodel (3.2.17) + activesupport (= 3.2.17) builder (~> 3.0.0) - activerecord (3.2.12) - activemodel (= 3.2.12) - activesupport (= 3.2.12) + activerecord (3.2.17) + activemodel (= 3.2.17) + activesupport (= 3.2.17) arel (~> 3.0.2) tzinfo (~> 0.3.29) - activeresource (3.2.12) - activemodel (= 3.2.12) - activesupport (= 3.2.12) - activesupport (3.2.12) - i18n (~> 0.6) + activeresource (3.2.17) + activemodel (= 3.2.17) + activesupport (= 3.2.17) + activesupport (3.2.17) + i18n (~> 0.6, >= 0.6.4) multi_json (~> 1.0) - acts_as_votable (0.8.0) + acts_as_votable (0.9.0) arel (3.0.3) audited (3.0.0) audited-activerecord (3.0.0) @@ -78,12 +78,12 @@ GEM factory_girl_rails (4.4.1) factory_girl (~> 4.4.0) railties (>= 3.0.0) - font-awesome-rails (3.0.2.0) - railties (>= 3.1) + font-awesome-rails (4.0.3.2) + railties (>= 3.2, < 5.0) generator_spec (0.9.2) activesupport (>= 3.0.0) railties (>= 3.0.0) - haml (4.0.0) + haml (4.0.5) tilt haml-rails (0.4) actionpack (>= 3.1, < 4.1) @@ -93,39 +93,37 @@ GEM hike (1.2.3) i18n (0.6.9) journey (1.0.4) - jquery-rails (2.2.1) + jquery-rails (3.1.0) railties (>= 3.0, < 5.0) thor (>= 0.14, < 2.0) - jquery-ui-rails (4.0.1) - jquery-rails - railties (>= 3.1.0) - json (1.7.7) - mail (2.4.4) - i18n (>= 0.4.0) + jquery-ui-rails (4.2.1) + railties (>= 3.2.16) + json (1.8.1) + mail (2.5.4) mime-types (~> 1.16) treetop (~> 1.4.8) mime-types (1.25.1) - multi_json (1.9.2) + multi_json (1.9.3) orm_adapter (0.4.0) polyglot (0.3.4) rack (1.4.5) rack-cache (1.2) rack (>= 0.4) - rack-ssl (1.3.3) + rack-ssl (1.3.4) rack rack-test (0.6.2) rack (>= 1.0) - rails (3.2.12) - actionmailer (= 3.2.12) - actionpack (= 3.2.12) - activerecord (= 3.2.12) - activeresource (= 3.2.12) - activesupport (= 3.2.12) + rails (3.2.17) + actionmailer (= 3.2.17) + actionpack (= 3.2.17) + activerecord (= 3.2.17) + activeresource (= 3.2.17) + activesupport (= 3.2.17) bundler (~> 1.0) - railties (= 3.2.12) - railties (3.2.12) - actionpack (= 3.2.12) - activesupport (= 3.2.12) + railties (= 3.2.17) + railties (3.2.17) + actionpack (= 3.2.17) + activesupport (= 3.2.17) rack-ssl (~> 1.3.2) rake (>= 0.8.7) rdoc (~> 3.4) @@ -151,7 +149,7 @@ GEM rack (~> 1.0) tilt (~> 1.1, != 1.3.0) sqlite3 (1.3.9) - thor (0.17.0) + thor (0.19.1) tilt (1.4.1) treetop (1.4.15) polyglot diff --git a/spec/dummy/config/environments/test.rb b/spec/dummy/config/environments/test.rb index 5dd5667..f1a4814 100644 --- a/spec/dummy/config/environments/test.rb +++ b/spec/dummy/config/environments/test.rb @@ -34,6 +34,4 @@ # Print deprecation notices to the stderr config.active_support.deprecation = :stderr - - config.i18n.enforce_available_locales = true end diff --git a/translation_center.gemspec b/translation_center.gemspec index c307bc3..1b84939 100644 --- a/translation_center.gemspec +++ b/translation_center.gemspec @@ -31,7 +31,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'generator_spec' # Dependencies - s.add_dependency 'rails', '>= 3.1.0', '<= 3.2.12' + s.add_dependency 'rails', '>= 3.1.0', '<= 3.2.17' s.add_dependency 'acts_as_votable' From 484decce1070870d64ba60a8734f5b4de0fa542f Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Sun, 4 May 2014 21:31:07 +0200 Subject: [PATCH 10/16] #19 Adding contexts to rspec tests --- .../translation_center/translation_spec.rb | 124 +++++++++--------- 1 file changed, 65 insertions(+), 59 deletions(-) diff --git a/spec/models/translation_center/translation_spec.rb b/spec/models/translation_center/translation_spec.rb index 7725522..9e11cbc 100644 --- a/spec/models/translation_center/translation_spec.rb +++ b/spec/models/translation_center/translation_spec.rb @@ -22,80 +22,86 @@ module TranslationCenter ) end - it "should sort by votes" do - # Creating translations - high_voted_translation = FactoryGirl.create( - :translation, - value: "Whatever", - translation_key: translation_key - ) - - low_voted_translation = FactoryGirl.create( - :translation, - value: "What ever", - translation_key: translation_key - ) - - # Voting for "Whatever" - 5.times { high_voted_translation.liked_by FactoryGirl.create(:user) } - - # Voting for "What ever" - 2.times { low_voted_translation.liked_by FactoryGirl.create(:user) } - - expected_order = [high_voted_translation, low_voted_translation] - - expect(translation_key.translations.sorted_by_votes).to eq(expected_order) - expect(translation_key.translations.sorted_by_votes).not_to eq(expected_order.reverse) - end - - it "should return translations of certain lang" do - # Arabic translation - expect(translation_key.translations.in("ar")).to eq([]) - - # English translation - expect(translation_key.translations.in("en")).to eq([en_translation]) + context "scopes" do + it "should sort by votes" do + # Creating translations + high_voted_translation = FactoryGirl.create( + :translation, + value: "Whatever", + translation_key: translation_key + ) + + low_voted_translation = FactoryGirl.create( + :translation, + value: "What ever", + translation_key: translation_key + ) + + # Voting for "Whatever" + 5.times { high_voted_translation.liked_by FactoryGirl.create(:user) } + + # Voting for "What ever" + 2.times { low_voted_translation.liked_by FactoryGirl.create(:user) } + + expected_order = [high_voted_translation, low_voted_translation] + + expect(translation_key.translations.sorted_by_votes).to eq(expected_order) + expect(translation_key.translations.sorted_by_votes).not_to eq(expected_order.reverse) + end + + it "should return translations of certain lang" do + # Arabic translation + expect(translation_key.translations.in("ar")).to eq([]) + + # English translation + expect(translation_key.translations.in("en")).to eq([en_translation]) + + # Deutsch translation + expect(translation_key.translations.in("de")).to eq([de_translation]) + end + end - # Deutsch translation - expect(translation_key.translations.in("de")).to eq([de_translation]) - end + context "translation key acceptance" do + it "should accept a translation" do + expect(en_translation.status).to eq(Translation::PENDING) - it "should accept a translation" do - expect(en_translation.status).to eq(Translation::PENDING) + en_translation.accept - en_translation.accept + expect(en_translation.status).to eq(Translation::ACCEPTED) + end - expect(en_translation.status).to eq(Translation::ACCEPTED) - end + it "should unaccept a translation" do + en_translation.accept - it "should unaccept a translation" do - en_translation.accept + expect(en_translation.status).to eq(Translation::ACCEPTED) - expect(en_translation.status).to eq(Translation::ACCEPTED) + en_translation.unaccept - en_translation.unaccept - - expect(en_translation.status).to eq(Translation::PENDING) - end + expect(en_translation.status).to eq(Translation::PENDING) + end - it "should flag the translation key as pending when translation is unaccepted" do - en_translation.accept + it "should flag the translation key as pending when translation is unaccepted" do + en_translation.accept - expect(en_translation.translation_key - .status(en_translation.lang)).to eq(TranslationKey::TRANSLATED) + expect(en_translation.translation_key + .status(en_translation.lang)).to eq(TranslationKey::TRANSLATED) - en_translation.unaccept + en_translation.unaccept - expect(en_translation.translation_key - .status(en_translation.lang)).to eq(TranslationKey::PENDING) + expect(en_translation.translation_key + .status(en_translation.lang)).to eq(TranslationKey::PENDING) + end end - it "should create one translation per lang per key" do - translation_attributes = en_translation.attributes.except("id") - duplicated_translation = FactoryGirl.build(:translation, translation_attributes) + context "validations" do + it "should create one translation per lang per key" do + translation_attributes = en_translation.attributes.except("id") + duplicated_translation = FactoryGirl.build(:translation, translation_attributes) - expect(duplicated_translation.valid?).to eq false + expect(duplicated_translation.valid?).to eq false - expect(duplicated_translation.errors.messages).not_to be_empty + expect(duplicated_translation.errors.messages).not_to be_empty + end end end end From f5a6ce3eb42e743191729d7697d03406cf108c9c Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Sun, 4 May 2014 23:01:55 +0200 Subject: [PATCH 11/16] #19 Downgrading Rails version and fixing user model in dummy app --- Gemfile.lock | 61 +++++++++--------- .../application_controller.rb | 4 +- .../translations/_show.html.haml | 6 +- spec/dummy/app/models/user.rb | 2 + spec/dummy/db/development.sqlite3 | Bin 102400 -> 0 bytes translation_center.gemspec | 2 +- 6 files changed, 39 insertions(+), 36 deletions(-) delete mode 100644 spec/dummy/db/development.sqlite3 diff --git a/Gemfile.lock b/Gemfile.lock index 1703982..1dc10b4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -10,18 +10,18 @@ PATH haml-rails jquery-rails jquery-ui-rails - rails (>= 3.1.0, <= 3.2.17) + rails (>= 3.1.0, <= 3.2.12) ya2yaml GEM remote: http://rubygems.org/ specs: - actionmailer (3.2.17) - actionpack (= 3.2.17) - mail (~> 2.5.4) - actionpack (3.2.17) - activemodel (= 3.2.17) - activesupport (= 3.2.17) + actionmailer (3.2.12) + actionpack (= 3.2.12) + mail (~> 2.4.4) + actionpack (3.2.12) + activemodel (= 3.2.12) + activesupport (= 3.2.12) builder (~> 3.0.0) erubis (~> 2.7.0) journey (~> 1.0.4) @@ -29,19 +29,19 @@ GEM rack-cache (~> 1.2) rack-test (~> 0.6.1) sprockets (~> 2.2.1) - activemodel (3.2.17) - activesupport (= 3.2.17) + activemodel (3.2.12) + activesupport (= 3.2.12) builder (~> 3.0.0) - activerecord (3.2.17) - activemodel (= 3.2.17) - activesupport (= 3.2.17) + activerecord (3.2.12) + activemodel (= 3.2.12) + activesupport (= 3.2.12) arel (~> 3.0.2) tzinfo (~> 0.3.29) - activeresource (3.2.17) - activemodel (= 3.2.17) - activesupport (= 3.2.17) - activesupport (3.2.17) - i18n (~> 0.6, >= 0.6.4) + activeresource (3.2.12) + activemodel (= 3.2.12) + activesupport (= 3.2.12) + activesupport (3.2.12) + i18n (~> 0.6) multi_json (~> 1.0) acts_as_votable (0.9.0) arel (3.0.3) @@ -96,10 +96,11 @@ GEM jquery-rails (3.1.0) railties (>= 3.0, < 5.0) thor (>= 0.14, < 2.0) - jquery-ui-rails (4.2.1) - railties (>= 3.2.16) + jquery-ui-rails (4.1.2) + railties (>= 3.1.0) json (1.8.1) - mail (2.5.4) + mail (2.4.4) + i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) mime-types (1.25.1) @@ -113,17 +114,17 @@ GEM rack rack-test (0.6.2) rack (>= 1.0) - rails (3.2.17) - actionmailer (= 3.2.17) - actionpack (= 3.2.17) - activerecord (= 3.2.17) - activeresource (= 3.2.17) - activesupport (= 3.2.17) + rails (3.2.12) + actionmailer (= 3.2.12) + actionpack (= 3.2.12) + activerecord (= 3.2.12) + activeresource (= 3.2.12) + activesupport (= 3.2.12) bundler (~> 1.0) - railties (= 3.2.17) - railties (3.2.17) - actionpack (= 3.2.17) - activesupport (= 3.2.17) + railties (= 3.2.12) + railties (3.2.12) + actionpack (= 3.2.12) + activesupport (= 3.2.12) rack-ssl (~> 1.3.2) rake (>= 0.8.7) rdoc (~> 3.4) diff --git a/app/controllers/translation_center/application_controller.rb b/app/controllers/translation_center/application_controller.rb index 5db5b35..1339037 100644 --- a/app/controllers/translation_center/application_controller.rb +++ b/app/controllers/translation_center/application_controller.rb @@ -12,7 +12,7 @@ class ApplicationController < ActionController::Base render "translation_center/errors/exception" end - + end # defaults @@ -24,7 +24,7 @@ def translation_langs_filters end protected - + def can_admin? current_user.can_admin_translations? end diff --git a/app/views/translation_center/translations/_show.html.haml b/app/views/translation_center/translations/_show.html.haml index 7dc8a29..14861d9 100644 --- a/app/views/translation_center/translations/_show.html.haml +++ b/app/views/translation_center/translations/_show.html.haml @@ -1,9 +1,9 @@ .well.well-small.translation_box{ id: "translation_id_#{translation.id}", 'data-key-id' => translation.translation_key.id } - + %div{class: "translation_info #{language_direction(to_lang)}"} %span = translation.value - + - if translation_admin? = link_to '×', translation_path(translation), method: :delete, data: { confirm: t('translation_center.actions.are_you_sure', :default => 'Are you sure?') }, class: 'close', remote: true %br @@ -22,7 +22,7 @@ = render 'translation_center/translations/accept_translation', translation: translation .votes_count.badge.badge-success.pull-right %span.count{ 'data-translation-id' => translation.id } - = translation.votes.count + = translation.votes_for.count = t('.votings') %a.pull-right{href: '#'} - voted = current_user.voted_on?(translation) diff --git a/spec/dummy/app/models/user.rb b/spec/dummy/app/models/user.rb index 02543cc..0c1f2f6 100644 --- a/spec/dummy/app/models/user.rb +++ b/spec/dummy/app/models/user.rb @@ -8,4 +8,6 @@ class User < ActiveRecord::Base # Setup accessible (or protected) attributes for your model attr_accessible :email, :password, :password_confirmation, :remember_me # attr_accessible :title, :body + + acts_as_translator end diff --git a/spec/dummy/db/development.sqlite3 b/spec/dummy/db/development.sqlite3 deleted file mode 100644 index ef17af77c4775e787eee08f2357af6f0e500a5dc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 102400 zcmeI4-*4O26~{&YqAl5>oV4X!EGVZ9vx&5eY{yNvuISuEF$_CS>K|>50V5dcRv{vh zGD$f!bvg^95ENAi=LCAbZQ8Jm#4E>*@|KZQe^kyvl zK);2^`(AHnGOzvZYvW#J>8V%eCF$w(ucp6~`*rrSslQH|6Hmu~GoBxNH2Uet--WB0 zKlEy*pWK=iL)|`amfp>J*e)TY=Ci zC=1czO5xRLb@yR|71YPYyeQAj2~XbS9r4y2|8+L#Xm|CU%~G^Yqf(&WcS~!fZRPg% z`pwntePyGxudMFv-df)xt(&E-U1jSQ{omW%jCJa%8m7yt%#O*qG0LHCm+$KK!qUo$ z>J>YVRW@{&RkVa&ryy0a=`cH?!bLqRn|hrUy1FmBhGlk(y+I+9$WpV)2(rr_xMb}i zvmIVP@K3p3y0N;qxvLbZux!=q%yhdNvsvA8nWk4NHgl-01c9>6xcfS3R_L8;)S24a zkVN@oSvZ>EQNdrdLu$s+EYo}AM@&W2%}V>D=Xxk$np3tKjH~41(RAv@{J7&ydSTbG z!V9|a6X)-L4s0l>t+&sK@_kuoebmDnK9p_KZLOClQa?`yXsFu@Kac{O{muiAIv!k@ z5#@dI;Mxg1;H1u-#^k|lR9ml1i?U8u?ews!SCnweX8KvyOS{{;pk`Mbs7E()qAbh8 z@jV`~ykGt@9dsTnJY41l)rr>~(hPf#tU94Ibv5uhORgQhtY>xY!^~ zWmL7}sdA?OGmF)_KR(-DYATZLh@h z4Q5shvpP?M^qk1eDN)|p5st47fLtRd`(Wo)vL`{$HBN;;b+ao|d{r$wIT$tFaW%bM zrp<}b)*bFa#E+TUvspLIaGY7?`GL0{O^Wi`ns7v&(t#*!Iuhf72L?++-6@>v3%OJG z3&fkUk+&x>(R}spb7&X`P>-$wOPyT4ZbT<}yFP&_Rf~T7wRM_bt1kxz;^q@ajS=x6x1PyiIN;e;JGE7ux=xcpDAeiJnb6OX_?y zjL8f8VZ+<0!tsl***(-!MPFS(X9A~7Fq#_Ez101Y8(JrG3sG8r=Khk0KMM&hCR%*JDJ z!Qs%Q`h~1_$ z38^j9zr5Iy6yLaVb#W;_k&rCr$K#UXmHb#jvYa1HNS5*=QOVNP;$mKiNnT%E%+e_4 zq@s8K|BLiT>9^9)r5{V*mkjAW=^Bag0|Fob0w4eaAOHd&00JNY0w4eaXOh7AQB{cF z`g3hj``Vvvi`w`8sfZ}J_)kVf{>@+P5-m<7Ma3)QU83c&F459xT;yHY0T2KI5C8!X009sH0T2KI5C8!X7=8ly`~Sl~ z#_$jXKmY_l00ck)1V8`;KmY_l00eOVM+|@f2!H?xfB*=900@8p2!H?xfWYt*!2N&t z#~2=h00@8p2!H?xfB*=900@8p2!H_Y|A+w)009sH0T2KI5C8!X009sH0T38|0{HuX z!#~FG5ClK~1V8`;KmY_l00ck)1V8`;@cbV!00JNY0w4eaAOHd&00JNY0w4ea!%qPB z|KT5FcnAU@00JNY0w4eaAOHd&00JNY0y8sT&P64 z{b=gF?9Xzmxj#?;bfzl3Ed6jGS_gtCU%o7~W?lVGjXCAJtgdTyqiXA}VVO>sVC33% zX?3@x?5@7ESyBpJuvU z#P!mR)xFJKWqv+Z(=6K$8!oG84c&3>TQ+qS^RsB2mdBO6A&)9jI#{m^qnfIn|%EWI^5GsG>1fuc^ z&6pE)sM{w|P_a{Cr@~H!or<6O5*uXdHpCBr?fo*f%KyMlWzlZrov2*)z!w;fPjZI?jg+JRQcvZLjR_BL+*`@H&N4eYd(!-7j#Hd!8*w&16PC_xAkbYrUM0 z^1z<|+|icF2#&n5AsoLy0PwVUi;Rbp>l<;=+NX-SNCO%Tf8r>0sMng^=dPM=R^ulq z?}b1VG>n6KI+8q}&?a5RT>| zSrO5%f4iUXJ6>K!w2J=?aa59`G#7kp9V8?9kEQzPq<7>eR`gNzzV?n*3BJWvTRSg_ zvb7_$4hHtu`v#o*?4=t-+wAs|SN+n-J&koSh<{wc^O2`OsE=QIQS_cK{NSr+?D;}C z9M*s5DFZ#>h*;o0Y$P6ws0S~I^6H$>dNC4hdb47B)&{ei=4FTeu(%bUKDg1 zDyT;{ay(V<*iR`sv|Q%!m+AO(BQ87D(;?FIo|z_|>x9y73Pj24EICBJtY>xY!gQNyuT*eP&eeb~5fr9Kq5~_!&4+M{T__Ey_A2jO|1Q&oi2jUFfbs ziE?H|3qN}9@H#VTV>yVnKeoK4H#%X%l+ENj%F%ObYU{#`DDRVn*LqmUnTPgysa&CT z=lWTfrrB+oKc>L|_{|s8*4yVq`94|o(Fv?-8|jZQcV9Y_O+Ib?Rl|Rs z4QvZ?lsgN`iPLwvYG_a-?XDwFo#>RnYn2V2ZW>S5ixi|PraV~YqMnsga|QLXm%H8d z)S4Sj8L*U+ZB`lO1qLZ6?R4$bq+Y9D=lLnoTx1#wo7HK}(DX`$5^EAUhE$xkMyb}U zC|{y&W1h!fhhgWVb3Ptci8_9;a3OWMP>2-sb)@r|15=&zqWl_l_?q8CWK_JwbHAMn zi5?S`y1I;%`+ar0a2*6d z00ck)1V8`;KmY_l00cnb><~cy|JfO9cnSg_00JNY0w4eaAOHd&00JOzb_wAAe|E= 3.1.0', '<= 3.2.17' + s.add_dependency 'rails', '>= 3.1.0', '<= 3.2.12' s.add_dependency 'acts_as_votable' From 33cbfd53be01fedba52cf348edad59252a3ce6e4 Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Sun, 4 May 2014 23:07:46 +0200 Subject: [PATCH 12/16] #18 Adding suggest translation spec --- spec/models/translation_center/translation_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/models/translation_center/translation_spec.rb b/spec/models/translation_center/translation_spec.rb index 9e11cbc..5c3d1a3 100644 --- a/spec/models/translation_center/translation_spec.rb +++ b/spec/models/translation_center/translation_spec.rb @@ -103,5 +103,11 @@ module TranslationCenter expect(duplicated_translation.errors.messages).not_to be_empty end end + + context "suggest translation" do + it "should suggest an English translation" do + expect(en_translation.suggest_translation.downcase).to eq("whatever") + end + end end end From be6bb35db5fcb9276fb063a1a8a59e7a41d16614 Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Sun, 4 May 2014 23:49:50 +0200 Subject: [PATCH 13/16] #18 Adding Bing translator gem and translation suggestion logic --- Gemfile.lock | 30 +++++++++++++++++++ app/models/translation_center/translation.rb | 15 ++++++++++ .../templates/config/translation_center.yml | 12 +++++--- lib/translation_center/translation_helpers.rb | 25 ++++++++++++++-- spec/dummy/config/translation_center.yml | 4 +++ .../translation_center/translation_spec.rb | 15 ++++++++++ translation_center.gemspec | 2 ++ 7 files changed, 96 insertions(+), 7 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 1dc10b4..c2d8490 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,6 +4,7 @@ PATH translation_center (1.7.1) acts_as_votable audited-activerecord + bing_translator devise font-awesome-rails haml @@ -44,6 +45,9 @@ GEM i18n (~> 0.6) multi_json (~> 1.0) acts_as_votable (0.9.0) + akami (1.2.2) + gyoku (>= 0.4.0) + nokogiri arel (3.0.3) audited (3.0.0) audited-activerecord (3.0.0) @@ -55,6 +59,10 @@ GEM erubis (>= 2.6.6) binding_of_caller (0.7.1) debug_inspector (>= 0.0.1) + bing_translator (4.3.0) + json (~> 1.8.0) + nokogiri (~> 1.6.0) + savon (~> 2.0) builder (3.0.4) coderay (1.0.9) columnize (0.8.9) @@ -83,6 +91,8 @@ GEM generator_spec (0.9.2) activesupport (>= 3.0.0) railties (>= 3.0.0) + gyoku (1.1.1) + builder (>= 2.1.2) haml (4.0.5) tilt haml-rails (0.4) @@ -91,6 +101,9 @@ GEM haml (>= 3.1, < 4.1) railties (>= 3.1, < 4.1) hike (1.2.3) + httpi (2.1.0) + rack + rubyntlm (~> 0.3.2) i18n (0.6.9) journey (1.0.4) jquery-rails (3.1.0) @@ -104,7 +117,11 @@ GEM mime-types (~> 1.16) treetop (~> 1.4.8) mime-types (1.25.1) + mini_portile (0.5.3) multi_json (1.9.3) + nokogiri (1.6.1) + mini_portile (~> 0.5.0) + nori (2.4.0) orm_adapter (0.4.0) polyglot (0.3.4) rack (1.4.5) @@ -144,6 +161,15 @@ GEM rspec-core (~> 2.14.0) rspec-expectations (~> 2.14.0) rspec-mocks (~> 2.14.0) + rubyntlm (0.3.4) + savon (2.5.0) + akami (~> 1.2.0) + builder (>= 2.1.2) + gyoku (~> 1.1.0) + httpi (~> 2.1.0) + nokogiri (>= 1.4.0) + nori (~> 2.4.0) + wasabi (~> 3.3.0) sprockets (2.2.2) hike (~> 1.2) multi_json (~> 1.0) @@ -158,6 +184,10 @@ GEM tzinfo (0.3.39) warden (1.2.1) rack (>= 1.0) + wasabi (3.3.0) + httpi (~> 2.0) + mime-types (< 2.0.0) + nokogiri (>= 1.4.0) ya2yaml (0.31) PLATFORMS diff --git a/app/models/translation_center/translation.rb b/app/models/translation_center/translation.rb index d2e4a6c..2a313c7 100644 --- a/app/models/translation_center/translation.rb +++ b/app/models/translation_center/translation.rb @@ -1,4 +1,8 @@ +require 'bing_translator' + module TranslationCenter + class MissingBingCredentials < StandardError; end + class Translation < ActiveRecord::Base # Constants CHANGES_PER_PAGE = 5 @@ -103,5 +107,16 @@ def one_translation_per_lang_per_key end end + def suggest_translation + client_id = TranslationCenter::CONFIG["bing"]["client_id"] + client_secret = TranslationCenter::CONFIG["bing"]["client_secret"] + + if client_id.present? && client_secret.present? + bing_translator = BingTranslator.new(client_id, client_secret) + bing_translator.translate(self.value, to: self.lang) + else + raise MissingBingCredentials + end + end end end diff --git a/lib/generators/translation_center/install/templates/config/translation_center.yml b/lib/generators/translation_center/install/templates/config/translation_center.yml index da717d6..2179983 100644 --- a/lib/generators/translation_center/install/templates/config/translation_center.yml +++ b/lib/generators/translation_center/install/templates/config/translation_center.yml @@ -8,18 +8,22 @@ common_atts: &common_atts # name: 'Arabic' # direction: 'rtl' - # yaml imported translations created by translator email, usually User email + # yaml imported translations created by translator email, usually User email yaml_translator_identifier: 'coder@tc.com' # when import translation from yaml to db set it to accepted by default yaml2db_translations_accepted: true # default is false # when admins add/edit translations they are considered accepted directly - accept_admin_translations: true + accept_admin_translations: true # identifier_type: 'email' # Uncomment and change the identifier if your User model has no email attribute # translator_type: 'User' # Uncomment and change if you want to change the translator type + bing: + client_id: ~ + client_secret: ~ + development: enabled: true # default false @@ -33,7 +37,7 @@ development: i18n_source: 'db' # can be db or yaml; default is db # when a new key is added to db, the value of the key is added as the default translation in English - save_default_translation: true + save_default_translation: true <<: *common_atts @@ -50,6 +54,6 @@ production: i18n_source: 'yaml' # can be db or yaml; default is yaml # when a new key is added to db, the value of the key is added as the default translation in English - save_default_translation: false + save_default_translation: false <<: *common_atts diff --git a/lib/translation_center/translation_helpers.rb b/lib/translation_center/translation_helpers.rb index f729f76..c95b07d 100644 --- a/lib/translation_center/translation_helpers.rb +++ b/lib/translation_center/translation_helpers.rb @@ -4,7 +4,7 @@ module TranslationCenter def self.prepare_translator translator = TranslationCenter::CONFIG['translator_type'].camelize.constantize.where(TranslationCenter::CONFIG['identifier_type'] => TranslationCenter::CONFIG['yaml_translator_identifier']).first - + # if translator doesn't exist then create him if translator.blank? translator = TranslationCenter::CONFIG['translator_type'].camelize.constantize.new @@ -95,8 +95,27 @@ def translate_with_adding(locale, key, options = {}) TranslationCenter::CONFIG['translator_type'] ||= 'User' else puts "WARNING: translation_center will be using default options if config/translation_center.yml doesn't exists" - TranslationCenter::CONFIG = {'enabled' => false, 'inspector' => 'missing', 'lang' => {'en' => {'name' => 'English', 'direction' => 'ltr'}}, 'yaml_translator_identifier' => 'coder@tc.com', 'i18n_source' => 'yaml', 'yaml2db_translations_accepted' => true, - 'accept_admin_translations' => true, 'save_default_translation' => true, 'identifier_type' => 'email', 'translator_type' => 'User' } + TranslationCenter::CONFIG = { + 'enabled' => false, + 'inspector' => 'missing', + 'lang' => { + 'en' => { + 'name' => 'English', + 'direction' => 'ltr' + } + }, + 'yaml_translator_identifier' => 'coder@tc.com', + 'i18n_source' => 'yaml', + 'yaml2db_translations_accepted' => true, + 'accept_admin_translations' => true, + 'save_default_translation' => true, + 'identifier_type' => 'email', + 'translator_type' => 'User', + 'bing' => { + 'client_id' => nil, + 'client_secret' => nil + } + } end I18n.available_locales = TranslationCenter::CONFIG['lang'].keys diff --git a/spec/dummy/config/translation_center.yml b/spec/dummy/config/translation_center.yml index 1ddf745..c9201a2 100644 --- a/spec/dummy/config/translation_center.yml +++ b/spec/dummy/config/translation_center.yml @@ -23,6 +23,10 @@ common_atts: &common_atts # identifier_type: 'email' # Uncomment and change the identifier if your User model has no email attribute # translator_type: 'User' # Uncomment and change if you want to change the translator type + bing: + client_id: ~ + client_secret: ~ + development: enabled: true # default false diff --git a/spec/models/translation_center/translation_spec.rb b/spec/models/translation_center/translation_spec.rb index 5c3d1a3..bd06718 100644 --- a/spec/models/translation_center/translation_spec.rb +++ b/spec/models/translation_center/translation_spec.rb @@ -105,7 +105,22 @@ module TranslationCenter end context "suggest translation" do + it "should raise error when Bing credentials are missing" do + expect{ en_translation.suggest_translation.downcase }.to( + raise_error(TranslationCenter::MissingBingCredentials) + ) + end + it "should suggest an English translation" do + TranslationCenter::CONFIG["bing"] = { + "client_id" => "fake", + "client_secret" => "fake" + } + + translator_object = OpenStruct.new + BingTranslator.stub(:new).and_return(translator_object) + translator_object.stub(:translate).and_return(en_translation.value) + expect(en_translation.suggest_translation.downcase).to eq("whatever") end end diff --git a/translation_center.gemspec b/translation_center.gemspec index c307bc3..fa45e58 100644 --- a/translation_center.gemspec +++ b/translation_center.gemspec @@ -47,4 +47,6 @@ Gem::Specification.new do |s| s.add_dependency 'haml' s.add_dependency 'haml-rails' + + s.add_dependency 'bing_translator' end From b3a247a15524f30e113c9bdd2919f51643fe21ec Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Mon, 5 May 2014 00:43:17 +0200 Subject: [PATCH 14/16] #18 Adding suggest action to translations controller --- .../translation_center/translations_controller.rb | 14 ++++++++++++-- .../translations/_show.html.haml | 3 ++- .../translations/suggest.js.haml | 2 ++ config/routes.rb | 6 ++++-- 4 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 app/views/translation_center/translations/suggest.js.haml diff --git a/app/controllers/translation_center/translations_controller.rb b/app/controllers/translation_center/translations_controller.rb index 9f60e0e..e9a2f1e 100644 --- a/app/controllers/translation_center/translations_controller.rb +++ b/app/controllers/translation_center/translations_controller.rb @@ -2,7 +2,7 @@ module TranslationCenter class TranslationsController < ApplicationController - before_filter :can_admin?, only: [ :destroy, :accept, :unaccept ] + before_filter :can_admin?, only: [ :destroy, :accept, :unaccept, :suggest ] before_filter :set_page_number, only: [:search] # POST /translations/1/vote @@ -41,7 +41,7 @@ def unaccept format.js end end - + # DELETE /translations/1 # DELETE /translations/1.json def destroy @@ -68,5 +68,15 @@ def search end end + # GET /translations/1/suggest + # GET /translations/1/suggest.js + def suggest + @translation = Translation.find(params[:id]) + + respond_to do |format| + format.json { render json: { translation: @translation.suggest_translation } } + format.js + end + end end end diff --git a/app/views/translation_center/translations/_show.html.haml b/app/views/translation_center/translations/_show.html.haml index 14861d9..d5b5095 100644 --- a/app/views/translation_center/translations/_show.html.haml +++ b/app/views/translation_center/translations/_show.html.haml @@ -1,7 +1,7 @@ .well.well-small.translation_box{ id: "translation_id_#{translation.id}", 'data-key-id' => translation.translation_key.id } %div{class: "translation_info #{language_direction(to_lang)}"} - %span + %span.js-translation-value = translation.value - if translation_admin? @@ -20,6 +20,7 @@ %div.translation_voting - if translation_admin? = render 'translation_center/translations/accept_translation', translation: translation + = link_to t('.bing_suggestion'), suggest_translation_path(translation, format: :js), class: "btn btn-primary", remote: true .votes_count.badge.badge-success.pull-right %span.count{ 'data-translation-id' => translation.id } = translation.votes_for.count diff --git a/app/views/translation_center/translations/suggest.js.haml b/app/views/translation_center/translations/suggest.js.haml new file mode 100644 index 0000000..b625ef2 --- /dev/null +++ b/app/views/translation_center/translations/suggest.js.haml @@ -0,0 +1,2 @@ +$(".js-translation-value").text("#{@translation.suggest_translation}"); +$(".js-translation-value").parent().effect("highlight", {}, 1000); \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 71a441b..f2782ff 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,5 @@ TranslationCenter::Engine.routes.draw do - + resources :translations do post :vote post :unvote @@ -8,12 +8,14 @@ collection do get :search end + + get :suggest, on: :member end resources :translation_keys, except: :create do post :update_translation get :translations - collection do + collection do get :search end end From 1503bd5a7625b4a1fdb2b3c3db867ca361ef6aa9 Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Tue, 6 May 2014 11:16:51 +0200 Subject: [PATCH 15/16] #18 Reverting back some code removed by mistake from dummy app --- .../app/assets/javascripts/application.js | 1 + .../app/assets/stylesheets/application.css | 1 + spec/dummy/app/models/user.rb | 4 ++++ .../app/views/layouts/application.html.erb | 20 +++++++++---------- spec/dummy/config/application.rb | 1 - spec/dummy/config/routes.rb | 2 -- 6 files changed, 16 insertions(+), 13 deletions(-) diff --git a/spec/dummy/app/assets/javascripts/application.js b/spec/dummy/app/assets/javascripts/application.js index 9097d83..4ecea48 100644 --- a/spec/dummy/app/assets/javascripts/application.js +++ b/spec/dummy/app/assets/javascripts/application.js @@ -13,3 +13,4 @@ //= require jquery //= require jquery_ujs //= require_tree . +//= require translation_center/inspector \ No newline at end of file diff --git a/spec/dummy/app/assets/stylesheets/application.css b/spec/dummy/app/assets/stylesheets/application.css index 3192ec8..10295cc 100644 --- a/spec/dummy/app/assets/stylesheets/application.css +++ b/spec/dummy/app/assets/stylesheets/application.css @@ -10,4 +10,5 @@ * *= require_self *= require_tree . + *= require translation_center/inspector */ diff --git a/spec/dummy/app/models/user.rb b/spec/dummy/app/models/user.rb index 0c1f2f6..82d55cf 100644 --- a/spec/dummy/app/models/user.rb +++ b/spec/dummy/app/models/user.rb @@ -10,4 +10,8 @@ class User < ActiveRecord::Base # attr_accessible :title, :body acts_as_translator + + def can_admin_translations? + self.id == User.first.id + end end diff --git a/spec/dummy/app/views/layouts/application.html.erb b/spec/dummy/app/views/layouts/application.html.erb index 4cab268..492a468 100644 --- a/spec/dummy/app/views/layouts/application.html.erb +++ b/spec/dummy/app/views/layouts/application.html.erb @@ -1,14 +1,14 @@ - - Dummy - <%= stylesheet_link_tag "application", :media => "all" %> - <%= javascript_include_tag "application" %> - <%= csrf_meta_tags %> - - + + Dummy + <%= stylesheet_link_tag "application", :media => "all" %> + <%= javascript_include_tag "application" %> + <%= csrf_meta_tags %> + -<%= yield %> - - + + <%= link_to('Logout', destroy_user_session_path, :method => :delete) %> + <%= yield %> + diff --git a/spec/dummy/config/application.rb b/spec/dummy/config/application.rb index 2ec3744..882fcaf 100644 --- a/spec/dummy/config/application.rb +++ b/spec/dummy/config/application.rb @@ -6,7 +6,6 @@ require "action_mailer/railtie" require "active_resource/railtie" require "sprockets/railtie" -# require "rails/test_unit/railtie" Bundler.require require "translation_center" diff --git a/spec/dummy/config/routes.rb b/spec/dummy/config/routes.rb index 395122c..c62685f 100644 --- a/spec/dummy/config/routes.rb +++ b/spec/dummy/config/routes.rb @@ -2,6 +2,4 @@ devise_for :users mount TranslationCenter::Engine => '/translation_center' - - root :to => 'articles#index' end From 23084eecaa26456339acac81961479faffbf1fd0 Mon Sep 17 00:00:00 2001 From: Mohamed Magdy Date: Tue, 6 May 2014 11:19:54 +0200 Subject: [PATCH 16/16] #18 Fixing identation --- spec/dummy/app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/dummy/app/models/user.rb b/spec/dummy/app/models/user.rb index 82d55cf..eaed97f 100644 --- a/spec/dummy/app/models/user.rb +++ b/spec/dummy/app/models/user.rb @@ -12,6 +12,6 @@ class User < ActiveRecord::Base acts_as_translator def can_admin_translations? - self.id == User.first.id - end + self.id == User.first.id + end end