translatable_records 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +73 -0
- data/lib/translatable_records/active_record/base.rb +0 -1
- data/lib/translatable_records/version.rb +1 -1
- data/test/dummy/config/environments/production.rb +5 -1
- data/test/dummy/config/environments/test.rb +9 -1
- data/test/dummy/log/test.log +1481 -0
- data/test/generators_test.rb +3 -4
- data/test/records_test.rb +4 -4
- metadata +8 -8
- data/README.rdoc +0 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b61704d024336a4509d9708a771599cee26caa2a
|
4
|
+
data.tar.gz: 6a43167a74eb0f957779fc579a95f434dc6a3c6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e2557a55fec2e33959ee5f08b1c7f36d9835cacdaa1dca0033d9900fa29244d443eb64bb7e02ee8390493ca5616275a91ddc1afcac49aff97b6e1157f5afbfe
|
7
|
+
data.tar.gz: 55520113d806276d960f04884bd0c88beef632cea5c83920911c3b8051c448637aa5d084cfcbc6806e57cef0ce4f6f30d85e044b41dfb9581a48564347b1daa8
|
data/MIT-LICENSE
CHANGED
data/README.md
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/translatable_records.svg)](http://badge.fury.io/rb/translatable_records) [![Code Climate](https://codeclimate.com/github/museways/translatable_records/badges/gpa.svg)](https://codeclimate.com/github/museways/translatable_records) [![Build Status](https://travis-ci.org/museways/translatable_records.svg?branch=master)](https://travis-ci.org/museways/translatable_records) [![Dependency Status](https://gemnasium.com/museways/translatable_records.svg)](https://gemnasium.com/museways/translatable_records)
|
2
|
+
|
3
|
+
# Translatable Records
|
4
|
+
|
5
|
+
Minimalistic toolkit to work with translatable records in rails.
|
6
|
+
|
7
|
+
## Install
|
8
|
+
|
9
|
+
Put this line in your Gemfile:
|
10
|
+
```ruby
|
11
|
+
gem 'translatable_records'
|
12
|
+
```
|
13
|
+
|
14
|
+
Then bundle:
|
15
|
+
```
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
## Configuration
|
20
|
+
|
21
|
+
Define wich attributes will be translatable with the attr_translatable in your models:
|
22
|
+
```ruby
|
23
|
+
attr_translatable :attr
|
24
|
+
```
|
25
|
+
|
26
|
+
Generate the translation model and migration for them:
|
27
|
+
```
|
28
|
+
rails g translation model
|
29
|
+
```
|
30
|
+
|
31
|
+
Complete the migrations adding the columns for each field in the translatations tables:
|
32
|
+
```ruby
|
33
|
+
add_column :model_translations, :attr, :string
|
34
|
+
```
|
35
|
+
|
36
|
+
Remove the original column from models table:
|
37
|
+
```ruby
|
38
|
+
remove_column :models, :attr
|
39
|
+
```
|
40
|
+
|
41
|
+
Update your db:
|
42
|
+
```
|
43
|
+
rake db:migrate
|
44
|
+
```
|
45
|
+
|
46
|
+
## Usage
|
47
|
+
|
48
|
+
If you want to change the locale to something different than I18n.locale:
|
49
|
+
```ruby
|
50
|
+
record.with_locale :es
|
51
|
+
```
|
52
|
+
|
53
|
+
If you want to build a translation for each available locale:
|
54
|
+
```ruby
|
55
|
+
record.build_translations
|
56
|
+
```
|
57
|
+
|
58
|
+
If you want to save multiple translations:
|
59
|
+
```erb
|
60
|
+
<%= f.fields_for :translations do |ff| %>
|
61
|
+
<%= ff.hidden_field :locale %>
|
62
|
+
<%= ff.label :attr %>
|
63
|
+
<%= ff.text_field :attr %>
|
64
|
+
<% end %>
|
65
|
+
```
|
66
|
+
|
67
|
+
## Credits
|
68
|
+
|
69
|
+
This gem is maintained and funded by [museways](http://museways.com).
|
70
|
+
|
71
|
+
## License
|
72
|
+
|
73
|
+
It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.
|
@@ -25,7 +25,6 @@ module TranslatableRecords
|
|
25
25
|
def make_translatable
|
26
26
|
include TranslatableRecords::ActiveRecord::Translatable
|
27
27
|
default_scope -> { includes(:translations) }
|
28
|
-
attr_accessible :translations_attributes if Rails::VERSION::MAJOR < 4
|
29
28
|
has_many :translations, class_name: "#{name}Translation", autosave: true, dependent: :destroy
|
30
29
|
accepts_nested_attributes_for :translations
|
31
30
|
end
|
@@ -20,7 +20,11 @@ Dummy::Application.configure do
|
|
20
20
|
# config.action_dispatch.rack_cache = true
|
21
21
|
|
22
22
|
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
-
|
23
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
24
|
+
config.serve_static_files = false
|
25
|
+
else
|
26
|
+
config.serve_static_assets = false
|
27
|
+
end
|
24
28
|
|
25
29
|
# Compress JavaScripts and CSS.
|
26
30
|
config.assets.js_compressor = :uglifier
|
@@ -13,7 +13,11 @@ Dummy::Application.configure do
|
|
13
13
|
config.eager_load = false
|
14
14
|
|
15
15
|
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
-
|
16
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
17
|
+
config.serve_static_files = false
|
18
|
+
else
|
19
|
+
config.serve_static_assets = false
|
20
|
+
end
|
17
21
|
config.static_cache_control = "public, max-age=3600"
|
18
22
|
|
19
23
|
# Show full error reports and disable caching.
|
@@ -33,4 +37,8 @@ Dummy::Application.configure do
|
|
33
37
|
|
34
38
|
# Print deprecation notices to the stderr.
|
35
39
|
config.active_support.deprecation = :stderr
|
40
|
+
|
41
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
42
|
+
config.active_support.test_order = :random
|
43
|
+
end
|
36
44
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -3862,3 +3862,1484 @@ RecordsTest: test_edit_associated_translation
|
|
3862
3862
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1[0m [["name", "new name"], ["updated_at", "2014-07-23 13:40:16.706625"]]
|
3863
3863
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3864
3864
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3865
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
3866
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3867
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
3868
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
3869
|
+
FROM sqlite_master
|
3870
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
3871
|
+
UNION ALL
|
3872
|
+
SELECT sql
|
3873
|
+
FROM sqlite_temp_master
|
3874
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
3875
|
+
|
3876
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
3877
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
3878
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
3879
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3880
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
3881
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
3882
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3883
|
+
-----------------------------------
|
3884
|
+
GeneratorsTest: test_generate_files
|
3885
|
+
-----------------------------------
|
3886
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3887
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3888
|
+
--------------------------------
|
3889
|
+
RecordsTest: test_change_locales
|
3890
|
+
--------------------------------
|
3891
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3892
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
3893
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-09-17 01:53:27.001661"], ["updated_at", "2014-09-17 01:53:27.001661"]]
|
3894
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-09-17 01:53:27.004263"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2014-09-17 01:53:27.004263"]]
|
3895
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3896
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
3897
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
3898
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3899
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
3900
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-09-17 01:53:27.008523"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2014-09-17 01:53:27.008523"]]
|
3901
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3902
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3903
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3904
|
+
-----------------------------------------------
|
3905
|
+
RecordsTest: test_create_associated_translation
|
3906
|
+
-----------------------------------------------
|
3907
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3908
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
3909
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-09-17 01:53:27.011392"], ["updated_at", "2014-09-17 01:53:27.011392"]]
|
3910
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 01:53:27.012039"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2014-09-17 01:53:27.012039"]]
|
3911
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3912
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3913
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3914
|
+
-----------------------------------------------
|
3915
|
+
RecordsTest: test_delete_associated_translation
|
3916
|
+
-----------------------------------------------
|
3917
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3918
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
3919
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-09-17 01:53:27.014740"], ["updated_at", "2014-09-17 01:53:27.014740"]]
|
3920
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-09-17 01:53:27.015355"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2014-09-17 01:53:27.015355"]]
|
3921
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3922
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3923
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "model_translations" WHERE "model_translations"."id" = ? [["id", 1]]
|
3924
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "models" WHERE "models"."id" = ?[0m [["id", 1]]
|
3925
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3926
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1[0m
|
3927
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3928
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3929
|
+
---------------------------------------------
|
3930
|
+
RecordsTest: test_edit_associated_translation
|
3931
|
+
---------------------------------------------
|
3932
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3933
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
3934
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-09-17 01:53:27.019568"], ["updated_at", "2014-09-17 01:53:27.019568"]]
|
3935
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-09-17 01:53:27.020170"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2014-09-17 01:53:27.020170"]]
|
3936
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3937
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3938
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1
|
3939
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1[0m [["name", "new name"], ["updated_at", "2014-09-17 01:53:27.022300"]]
|
3940
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3941
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3942
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
3943
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3944
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
3945
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
3946
|
+
FROM sqlite_master
|
3947
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
3948
|
+
UNION ALL
|
3949
|
+
SELECT sql
|
3950
|
+
FROM sqlite_temp_master
|
3951
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
3952
|
+
|
3953
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
3954
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
3955
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
3956
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3957
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
3958
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
3959
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3960
|
+
-------------------------------------
|
3961
|
+
GeneratorsTest: test_files_generation
|
3962
|
+
-------------------------------------
|
3963
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3964
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3965
|
+
-------------------------------------------------
|
3966
|
+
RecordsTest: test_associated_translation_creation
|
3967
|
+
-------------------------------------------------
|
3968
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3969
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
3970
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-14 23:43:59.631359"], ["updated_at", "2015-02-14 23:43:59.631359"]]
|
3971
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-14 23:43:59.634971"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-14 23:43:59.634971"]]
|
3972
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3973
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3974
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3975
|
+
-------------------------------------------------
|
3976
|
+
RecordsTest: test_associated_translation_deletion
|
3977
|
+
-------------------------------------------------
|
3978
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3979
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
3980
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-14 23:43:59.638369"], ["updated_at", "2015-02-14 23:43:59.638369"]]
|
3981
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-14 23:43:59.638978"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-14 23:43:59.638978"]]
|
3982
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3983
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3984
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
3985
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
3986
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3987
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
3988
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3989
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3990
|
+
------------------------------------------------
|
3991
|
+
RecordsTest: test_associated_translation_edition
|
3992
|
+
------------------------------------------------
|
3993
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3994
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
3995
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-14 23:43:59.644727"], ["updated_at", "2015-02-14 23:43:59.644727"]]
|
3996
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-14 23:43:59.645417"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-14 23:43:59.645417"]]
|
3997
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3998
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3999
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4000
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-14 23:43:59.647833"]]
|
4001
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4002
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4003
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4004
|
+
-------------------------------
|
4005
|
+
RecordsTest: test_locale_change
|
4006
|
+
-------------------------------
|
4007
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4008
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4009
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-14 23:43:59.651518"], ["updated_at", "2015-02-14 23:43:59.651518"]]
|
4010
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-14 23:43:59.652226"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-14 23:43:59.652226"]]
|
4011
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4012
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4013
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4014
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4015
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4016
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-14 23:43:59.655258"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-14 23:43:59.655258"]]
|
4017
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4018
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4019
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4020
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4021
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4022
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4023
|
+
FROM sqlite_master
|
4024
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4025
|
+
UNION ALL
|
4026
|
+
SELECT sql
|
4027
|
+
FROM sqlite_temp_master
|
4028
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4029
|
+
|
4030
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4031
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4032
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4033
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4034
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4035
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4036
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4037
|
+
-------------------------------------------------
|
4038
|
+
RecordsTest: test_associated_translation_creation
|
4039
|
+
-------------------------------------------------
|
4040
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4041
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4042
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:02:46.533633"], ["updated_at", "2015-02-15 00:02:46.533633"]]
|
4043
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:02:46.536265"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:02:46.536265"]]
|
4044
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4045
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4046
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4047
|
+
-------------------------------------------------
|
4048
|
+
RecordsTest: test_associated_translation_deletion
|
4049
|
+
-------------------------------------------------
|
4050
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4051
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4052
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:02:46.539743"], ["updated_at", "2015-02-15 00:02:46.539743"]]
|
4053
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:02:46.540413"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:02:46.540413"]]
|
4054
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4055
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4056
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4057
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4058
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4059
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4060
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4061
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4062
|
+
------------------------------------------------
|
4063
|
+
RecordsTest: test_associated_translation_edition
|
4064
|
+
------------------------------------------------
|
4065
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4066
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4067
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:02:46.546676"], ["updated_at", "2015-02-15 00:02:46.546676"]]
|
4068
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:02:46.547393"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:02:46.547393"]]
|
4069
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4070
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4071
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4072
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:02:46.549698"]]
|
4073
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4074
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4075
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4076
|
+
-------------------------------
|
4077
|
+
RecordsTest: test_locale_change
|
4078
|
+
-------------------------------
|
4079
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4080
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4081
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:02:46.552606"], ["updated_at", "2015-02-15 00:02:46.552606"]]
|
4082
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:02:46.553221"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:02:46.553221"]]
|
4083
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4084
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4085
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4086
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4087
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4088
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:02:46.556149"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:02:46.556149"]]
|
4089
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4090
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4091
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4092
|
+
-------------------------------------
|
4093
|
+
GeneratorsTest: test_files_generation
|
4094
|
+
-------------------------------------
|
4095
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4096
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4097
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4098
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4099
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4100
|
+
FROM sqlite_master
|
4101
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4102
|
+
UNION ALL
|
4103
|
+
SELECT sql
|
4104
|
+
FROM sqlite_temp_master
|
4105
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4106
|
+
|
4107
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4108
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4109
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4110
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4111
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4112
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4113
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4114
|
+
-------------------------------------------------
|
4115
|
+
RecordsTest: test_associated_translation_creation
|
4116
|
+
-------------------------------------------------
|
4117
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4118
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4119
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:09:53.539225"], ["updated_at", "2015-02-15 00:09:53.539225"]]
|
4120
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:09:53.542053"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:09:53.542053"]]
|
4121
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4122
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4123
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4124
|
+
-------------------------------------------------
|
4125
|
+
RecordsTest: test_associated_translation_deletion
|
4126
|
+
-------------------------------------------------
|
4127
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4128
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4129
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:09:53.545779"], ["updated_at", "2015-02-15 00:09:53.545779"]]
|
4130
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:09:53.546496"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:09:53.546496"]]
|
4131
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4132
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4133
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4134
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4135
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4136
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4137
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4138
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4139
|
+
------------------------------------------------
|
4140
|
+
RecordsTest: test_associated_translation_edition
|
4141
|
+
------------------------------------------------
|
4142
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4143
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4144
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:09:53.553577"], ["updated_at", "2015-02-15 00:09:53.553577"]]
|
4145
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:09:53.554231"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:09:53.554231"]]
|
4146
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4147
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4148
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4149
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:09:53.556375"]]
|
4150
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4151
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4152
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4153
|
+
-------------------------------
|
4154
|
+
RecordsTest: test_locale_change
|
4155
|
+
-------------------------------
|
4156
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4157
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4158
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:09:53.559246"], ["updated_at", "2015-02-15 00:09:53.559246"]]
|
4159
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:09:53.559995"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:09:53.559995"]]
|
4160
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4161
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4162
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4163
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4164
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4165
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:09:53.562997"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:09:53.562997"]]
|
4166
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4167
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4168
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4169
|
+
-------------------------------------
|
4170
|
+
GeneratorsTest: test_files_generation
|
4171
|
+
-------------------------------------
|
4172
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4173
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4174
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4175
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4176
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4177
|
+
FROM sqlite_master
|
4178
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4179
|
+
UNION ALL
|
4180
|
+
SELECT sql
|
4181
|
+
FROM sqlite_temp_master
|
4182
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4183
|
+
|
4184
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4185
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4186
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4187
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4188
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4189
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4190
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4191
|
+
-------------------------------------------------
|
4192
|
+
RecordsTest: test_associated_translation_creation
|
4193
|
+
-------------------------------------------------
|
4194
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4195
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4196
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:10:25.344718"], ["updated_at", "2015-02-15 00:10:25.344718"]]
|
4197
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:10:25.347439"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:10:25.347439"]]
|
4198
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4199
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4200
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4201
|
+
-------------------------------------------------
|
4202
|
+
RecordsTest: test_associated_translation_deletion
|
4203
|
+
-------------------------------------------------
|
4204
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4205
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4206
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:10:25.350709"], ["updated_at", "2015-02-15 00:10:25.350709"]]
|
4207
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:10:25.351313"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:10:25.351313"]]
|
4208
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4209
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4210
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4211
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4212
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4213
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4214
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4215
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4216
|
+
------------------------------------------------
|
4217
|
+
RecordsTest: test_associated_translation_edition
|
4218
|
+
------------------------------------------------
|
4219
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4220
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4221
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:10:25.356708"], ["updated_at", "2015-02-15 00:10:25.356708"]]
|
4222
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:10:25.357343"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:10:25.357343"]]
|
4223
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4224
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4225
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4226
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:10:25.359649"]]
|
4227
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4228
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4229
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4230
|
+
-------------------------------
|
4231
|
+
RecordsTest: test_locale_change
|
4232
|
+
-------------------------------
|
4233
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4234
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4235
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:10:25.362645"], ["updated_at", "2015-02-15 00:10:25.362645"]]
|
4236
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:10:25.363325"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:10:25.363325"]]
|
4237
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4238
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4239
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4240
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4241
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4242
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:10:25.367164"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:10:25.367164"]]
|
4243
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4244
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4245
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4246
|
+
-------------------------------------
|
4247
|
+
GeneratorsTest: test_files_generation
|
4248
|
+
-------------------------------------
|
4249
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4250
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4251
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4252
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4253
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4254
|
+
FROM sqlite_master
|
4255
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4256
|
+
UNION ALL
|
4257
|
+
SELECT sql
|
4258
|
+
FROM sqlite_temp_master
|
4259
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4260
|
+
|
4261
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4262
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4263
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4264
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4265
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4266
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4267
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4268
|
+
-------------------------------------------------
|
4269
|
+
RecordsTest: test_associated_translation_creation
|
4270
|
+
-------------------------------------------------
|
4271
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4272
|
+
[1m[36mModelTranslation Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4273
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:11:03.921500"], ["updated_at", "2015-02-15 00:11:03.921500"]]
|
4274
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:11:03.924513"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:11:03.924513"]]
|
4275
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4276
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4277
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4278
|
+
-------------------------------------------------
|
4279
|
+
RecordsTest: test_associated_translation_deletion
|
4280
|
+
-------------------------------------------------
|
4281
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4282
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4283
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:11:03.928396"], ["updated_at", "2015-02-15 00:11:03.928396"]]
|
4284
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:11:03.929407"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:11:03.929407"]]
|
4285
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4286
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4287
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4288
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4289
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4290
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4291
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4292
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4293
|
+
------------------------------------------------
|
4294
|
+
RecordsTest: test_associated_translation_edition
|
4295
|
+
------------------------------------------------
|
4296
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4297
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4298
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:11:03.937501"], ["updated_at", "2015-02-15 00:11:03.937501"]]
|
4299
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:11:03.938522"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:11:03.938522"]]
|
4300
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4301
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4302
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4303
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:11:03.941999"]]
|
4304
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4305
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4306
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4307
|
+
-------------------------------
|
4308
|
+
RecordsTest: test_locale_change
|
4309
|
+
-------------------------------
|
4310
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4311
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4312
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:11:03.945350"], ["updated_at", "2015-02-15 00:11:03.945350"]]
|
4313
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:11:03.945975"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:11:03.945975"]]
|
4314
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4315
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4316
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4317
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4318
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4319
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:11:03.948951"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:11:03.948951"]]
|
4320
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4321
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4322
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4323
|
+
-------------------------------------
|
4324
|
+
GeneratorsTest: test_files_generation
|
4325
|
+
-------------------------------------
|
4326
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4327
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4328
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4329
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4330
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4331
|
+
FROM sqlite_master
|
4332
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4333
|
+
UNION ALL
|
4334
|
+
SELECT sql
|
4335
|
+
FROM sqlite_temp_master
|
4336
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4337
|
+
|
4338
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4339
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4340
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4341
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4342
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4343
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4344
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4345
|
+
-------------------------------------
|
4346
|
+
GeneratorsTest: test_files_generation
|
4347
|
+
-------------------------------------
|
4348
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4349
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4350
|
+
-------------------------------------------------
|
4351
|
+
RecordsTest: test_associated_translation_creation
|
4352
|
+
-------------------------------------------------
|
4353
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4354
|
+
[1m[36mModelTranslation Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4355
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:11:22.332774"], ["updated_at", "2015-02-15 00:11:22.332774"]]
|
4356
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:11:22.336285"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:11:22.336285"]]
|
4357
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4358
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4359
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4360
|
+
-------------------------------------------------
|
4361
|
+
RecordsTest: test_associated_translation_deletion
|
4362
|
+
-------------------------------------------------
|
4363
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4364
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4365
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:11:22.339730"], ["updated_at", "2015-02-15 00:11:22.339730"]]
|
4366
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:11:22.340312"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:11:22.340312"]]
|
4367
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4368
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4369
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4370
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4371
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4372
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4373
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4374
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4375
|
+
------------------------------------------------
|
4376
|
+
RecordsTest: test_associated_translation_edition
|
4377
|
+
------------------------------------------------
|
4378
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4379
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4380
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:11:22.345752"], ["updated_at", "2015-02-15 00:11:22.345752"]]
|
4381
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:11:22.346407"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:11:22.346407"]]
|
4382
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4383
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4384
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4385
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:11:22.348743"]]
|
4386
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4387
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4388
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4389
|
+
-------------------------------
|
4390
|
+
RecordsTest: test_locale_change
|
4391
|
+
-------------------------------
|
4392
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4393
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4394
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:11:22.352179"], ["updated_at", "2015-02-15 00:11:22.352179"]]
|
4395
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:11:22.352910"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:11:22.352910"]]
|
4396
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4397
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4398
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4399
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4400
|
+
[1m[35mModelTranslation Exists (0.2ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4401
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:11:22.357180"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:11:22.357180"]]
|
4402
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4403
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4404
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4405
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4406
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4407
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4408
|
+
FROM sqlite_master
|
4409
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4410
|
+
UNION ALL
|
4411
|
+
SELECT sql
|
4412
|
+
FROM sqlite_temp_master
|
4413
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4414
|
+
|
4415
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4416
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4417
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4418
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4419
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4420
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4421
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4422
|
+
-------------------------------------------------
|
4423
|
+
RecordsTest: test_associated_translation_creation
|
4424
|
+
-------------------------------------------------
|
4425
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4426
|
+
[1m[36mModelTranslation Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4427
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:12:06.161919"], ["updated_at", "2015-02-15 00:12:06.161919"]]
|
4428
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:12:06.164989"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:06.164989"]]
|
4429
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4430
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4431
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4432
|
+
-------------------------------------------------
|
4433
|
+
RecordsTest: test_associated_translation_deletion
|
4434
|
+
-------------------------------------------------
|
4435
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4436
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4437
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:12:06.168797"], ["updated_at", "2015-02-15 00:12:06.168797"]]
|
4438
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:12:06.169457"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:06.169457"]]
|
4439
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4440
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4441
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4442
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4443
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4444
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4445
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4446
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4447
|
+
------------------------------------------------
|
4448
|
+
RecordsTest: test_associated_translation_edition
|
4449
|
+
------------------------------------------------
|
4450
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4451
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4452
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:12:06.175216"], ["updated_at", "2015-02-15 00:12:06.175216"]]
|
4453
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:12:06.175886"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:06.175886"]]
|
4454
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4455
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4456
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4457
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:12:06.178186"]]
|
4458
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4459
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4460
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4461
|
+
-------------------------------
|
4462
|
+
RecordsTest: test_locale_change
|
4463
|
+
-------------------------------
|
4464
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4465
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4466
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:12:06.180991"], ["updated_at", "2015-02-15 00:12:06.180991"]]
|
4467
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:12:06.181583"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:06.181583"]]
|
4468
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4469
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4470
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4471
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4472
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4473
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:12:06.184559"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:12:06.184559"]]
|
4474
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4475
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4476
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4477
|
+
-------------------------------------
|
4478
|
+
GeneratorsTest: test_files_generation
|
4479
|
+
-------------------------------------
|
4480
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4481
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4482
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4483
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4484
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4485
|
+
FROM sqlite_master
|
4486
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4487
|
+
UNION ALL
|
4488
|
+
SELECT sql
|
4489
|
+
FROM sqlite_temp_master
|
4490
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4491
|
+
|
4492
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4493
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4494
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4495
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4496
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4497
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4498
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4499
|
+
-------------------------------------------------
|
4500
|
+
RecordsTest: test_associated_translation_creation
|
4501
|
+
-------------------------------------------------
|
4502
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4503
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4504
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:12:23.008729"], ["updated_at", "2015-02-15 00:12:23.008729"]]
|
4505
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:12:23.011070"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:23.011070"]]
|
4506
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4507
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4508
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4509
|
+
-------------------------------------------------
|
4510
|
+
RecordsTest: test_associated_translation_deletion
|
4511
|
+
-------------------------------------------------
|
4512
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4513
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4514
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:12:23.014542"], ["updated_at", "2015-02-15 00:12:23.014542"]]
|
4515
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:12:23.015299"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:23.015299"]]
|
4516
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4517
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4518
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4519
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4520
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4521
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4522
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4523
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4524
|
+
------------------------------------------------
|
4525
|
+
RecordsTest: test_associated_translation_edition
|
4526
|
+
------------------------------------------------
|
4527
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4528
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4529
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:12:23.022868"], ["updated_at", "2015-02-15 00:12:23.022868"]]
|
4530
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:12:23.023598"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:23.023598"]]
|
4531
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4532
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4533
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4534
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:12:23.026150"]]
|
4535
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4536
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4537
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4538
|
+
-------------------------------
|
4539
|
+
RecordsTest: test_locale_change
|
4540
|
+
-------------------------------
|
4541
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4542
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4543
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:12:23.029100"], ["updated_at", "2015-02-15 00:12:23.029100"]]
|
4544
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:12:23.029751"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:23.029751"]]
|
4545
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4546
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4547
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4548
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4549
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4550
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:12:23.032899"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:12:23.032899"]]
|
4551
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4552
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4553
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4554
|
+
-------------------------------------
|
4555
|
+
GeneratorsTest: test_files_generation
|
4556
|
+
-------------------------------------
|
4557
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4558
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4559
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4560
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4561
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4562
|
+
FROM sqlite_master
|
4563
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4564
|
+
UNION ALL
|
4565
|
+
SELECT sql
|
4566
|
+
FROM sqlite_temp_master
|
4567
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4568
|
+
|
4569
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4570
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4571
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4572
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4573
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4574
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4575
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4576
|
+
-------------------------------------
|
4577
|
+
GeneratorsTest: test_files_generation
|
4578
|
+
-------------------------------------
|
4579
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4580
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4581
|
+
-------------------------------------------------
|
4582
|
+
RecordsTest: test_associated_translation_creation
|
4583
|
+
-------------------------------------------------
|
4584
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4585
|
+
[1m[36mModelTranslation Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4586
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:12:26.327328"], ["updated_at", "2015-02-15 00:12:26.327328"]]
|
4587
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:12:26.331329"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:26.331329"]]
|
4588
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4589
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4590
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4591
|
+
-------------------------------------------------
|
4592
|
+
RecordsTest: test_associated_translation_deletion
|
4593
|
+
-------------------------------------------------
|
4594
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4595
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4596
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:12:26.335388"], ["updated_at", "2015-02-15 00:12:26.335388"]]
|
4597
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:12:26.336060"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:26.336060"]]
|
4598
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4599
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4600
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4601
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4602
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4603
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4604
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4605
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4606
|
+
------------------------------------------------
|
4607
|
+
RecordsTest: test_associated_translation_edition
|
4608
|
+
------------------------------------------------
|
4609
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4610
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4611
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:12:26.342183"], ["updated_at", "2015-02-15 00:12:26.342183"]]
|
4612
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:12:26.342907"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:26.342907"]]
|
4613
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4614
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4615
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4616
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:12:26.345201"]]
|
4617
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4618
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4619
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4620
|
+
-------------------------------
|
4621
|
+
RecordsTest: test_locale_change
|
4622
|
+
-------------------------------
|
4623
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4624
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4625
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:12:26.348020"], ["updated_at", "2015-02-15 00:12:26.348020"]]
|
4626
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:12:26.348653"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:12:26.348653"]]
|
4627
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4628
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4629
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4630
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4631
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4632
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:12:26.351570"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:12:26.351570"]]
|
4633
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4634
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4635
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4636
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4637
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4638
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4639
|
+
FROM sqlite_master
|
4640
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4641
|
+
UNION ALL
|
4642
|
+
SELECT sql
|
4643
|
+
FROM sqlite_temp_master
|
4644
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4645
|
+
|
4646
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4647
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4648
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4649
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4650
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4651
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4652
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4653
|
+
-------------------------------------
|
4654
|
+
GeneratorsTest: test_files_generation
|
4655
|
+
-------------------------------------
|
4656
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4657
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4658
|
+
-------------------------------------------------
|
4659
|
+
RecordsTest: test_associated_translation_creation
|
4660
|
+
-------------------------------------------------
|
4661
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4662
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4663
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:13:02.726052"], ["updated_at", "2015-02-15 00:13:02.726052"]]
|
4664
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:13:02.729537"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:13:02.729537"]]
|
4665
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4666
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4667
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4668
|
+
-------------------------------------------------
|
4669
|
+
RecordsTest: test_associated_translation_deletion
|
4670
|
+
-------------------------------------------------
|
4671
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4672
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4673
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:13:02.735293"], ["updated_at", "2015-02-15 00:13:02.735293"]]
|
4674
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:13:02.736086"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:13:02.736086"]]
|
4675
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4676
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4677
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4678
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4679
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4680
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4681
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4682
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4683
|
+
------------------------------------------------
|
4684
|
+
RecordsTest: test_associated_translation_edition
|
4685
|
+
------------------------------------------------
|
4686
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4687
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4688
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:13:02.743623"], ["updated_at", "2015-02-15 00:13:02.743623"]]
|
4689
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:13:02.744409"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:13:02.744409"]]
|
4690
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4691
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4692
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4693
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:13:02.746791"]]
|
4694
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4695
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4696
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4697
|
+
-------------------------------
|
4698
|
+
RecordsTest: test_locale_change
|
4699
|
+
-------------------------------
|
4700
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4701
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4702
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:13:02.749657"], ["updated_at", "2015-02-15 00:13:02.749657"]]
|
4703
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:13:02.750301"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:13:02.750301"]]
|
4704
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4705
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4706
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4707
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4708
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4709
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:13:02.753264"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:13:02.753264"]]
|
4710
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4711
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4712
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4713
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4714
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4715
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4716
|
+
FROM sqlite_master
|
4717
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4718
|
+
UNION ALL
|
4719
|
+
SELECT sql
|
4720
|
+
FROM sqlite_temp_master
|
4721
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4722
|
+
|
4723
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4724
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4725
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4726
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4727
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4728
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4729
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4730
|
+
-------------------------------------
|
4731
|
+
GeneratorsTest: test_files_generation
|
4732
|
+
-------------------------------------
|
4733
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4734
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4735
|
+
-------------------------------------------------
|
4736
|
+
RecordsTest: test_associated_translation_creation
|
4737
|
+
-------------------------------------------------
|
4738
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4739
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4740
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:14:28.807744"], ["updated_at", "2015-02-15 00:14:28.807744"]]
|
4741
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:14:28.810592"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:14:28.810592"]]
|
4742
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4743
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4744
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4745
|
+
-------------------------------------------------
|
4746
|
+
RecordsTest: test_associated_translation_deletion
|
4747
|
+
-------------------------------------------------
|
4748
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4749
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4750
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:14:28.814015"], ["updated_at", "2015-02-15 00:14:28.814015"]]
|
4751
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:14:28.814738"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:14:28.814738"]]
|
4752
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4753
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4754
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4755
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4756
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4757
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4758
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4759
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4760
|
+
------------------------------------------------
|
4761
|
+
RecordsTest: test_associated_translation_edition
|
4762
|
+
------------------------------------------------
|
4763
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4764
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4765
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:14:28.820736"], ["updated_at", "2015-02-15 00:14:28.820736"]]
|
4766
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:14:28.821508"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:14:28.821508"]]
|
4767
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4768
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4769
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4770
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:14:28.824290"]]
|
4771
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4772
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4773
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4774
|
+
-------------------------------
|
4775
|
+
RecordsTest: test_locale_change
|
4776
|
+
-------------------------------
|
4777
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4778
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4779
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:14:28.828140"], ["updated_at", "2015-02-15 00:14:28.828140"]]
|
4780
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:14:28.828837"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:14:28.828837"]]
|
4781
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4782
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4783
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4784
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4785
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4786
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:14:28.832006"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:14:28.832006"]]
|
4787
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4788
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4789
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4790
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4791
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4792
|
+
[1m[35m (0.3ms)[0m SELECT sql
|
4793
|
+
FROM sqlite_master
|
4794
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4795
|
+
UNION ALL
|
4796
|
+
SELECT sql
|
4797
|
+
FROM sqlite_temp_master
|
4798
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4799
|
+
|
4800
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4801
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4802
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4803
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4804
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4805
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4806
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4807
|
+
-------------------------------------
|
4808
|
+
GeneratorsTest: test_files_generation
|
4809
|
+
-------------------------------------
|
4810
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4811
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4812
|
+
-------------------------------------------------
|
4813
|
+
RecordsTest: test_associated_translation_creation
|
4814
|
+
-------------------------------------------------
|
4815
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4816
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4817
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:18:15.676115"], ["updated_at", "2015-02-15 00:18:15.676115"]]
|
4818
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:18:15.678703"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:15.678703"]]
|
4819
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4820
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4821
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4822
|
+
-------------------------------------------------
|
4823
|
+
RecordsTest: test_associated_translation_deletion
|
4824
|
+
-------------------------------------------------
|
4825
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4826
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4827
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:18:15.681938"], ["updated_at", "2015-02-15 00:18:15.681938"]]
|
4828
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:18:15.682547"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:15.682547"]]
|
4829
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4830
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4831
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4832
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4833
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4834
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4835
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4836
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4837
|
+
------------------------------------------------
|
4838
|
+
RecordsTest: test_associated_translation_edition
|
4839
|
+
------------------------------------------------
|
4840
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4841
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4842
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:18:15.688716"], ["updated_at", "2015-02-15 00:18:15.688716"]]
|
4843
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:18:15.689466"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:15.689466"]]
|
4844
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4845
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4846
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4847
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:18:15.691634"]]
|
4848
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4849
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4850
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4851
|
+
-------------------------------
|
4852
|
+
RecordsTest: test_locale_change
|
4853
|
+
-------------------------------
|
4854
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4855
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4856
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:18:15.694386"], ["updated_at", "2015-02-15 00:18:15.694386"]]
|
4857
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:18:15.695013"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:15.695013"]]
|
4858
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4859
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4860
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4861
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4862
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4863
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:18:15.698874"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:18:15.698874"]]
|
4864
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4865
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4866
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4867
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4868
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4869
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4870
|
+
FROM sqlite_master
|
4871
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4872
|
+
UNION ALL
|
4873
|
+
SELECT sql
|
4874
|
+
FROM sqlite_temp_master
|
4875
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4876
|
+
|
4877
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4878
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4879
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4880
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4881
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4882
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4883
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4884
|
+
-------------------------------------------------
|
4885
|
+
RecordsTest: test_associated_translation_creation
|
4886
|
+
-------------------------------------------------
|
4887
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4888
|
+
[1m[36mModelTranslation Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4889
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:18:32.182527"], ["updated_at", "2015-02-15 00:18:32.182527"]]
|
4890
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:18:32.185929"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:32.185929"]]
|
4891
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4892
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
4893
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4894
|
+
-------------------------------------------------
|
4895
|
+
RecordsTest: test_associated_translation_deletion
|
4896
|
+
-------------------------------------------------
|
4897
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4898
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4899
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:18:32.193222"], ["updated_at", "2015-02-15 00:18:32.193222"]]
|
4900
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:18:32.194255"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:32.194255"]]
|
4901
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4902
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4903
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4904
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4905
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4906
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4907
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4908
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4909
|
+
------------------------------------------------
|
4910
|
+
RecordsTest: test_associated_translation_edition
|
4911
|
+
------------------------------------------------
|
4912
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4913
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4914
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:18:32.203104"], ["updated_at", "2015-02-15 00:18:32.203104"]]
|
4915
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:18:32.204001"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:32.204001"]]
|
4916
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4917
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4918
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4919
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:18:32.207381"]]
|
4920
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4921
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4922
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4923
|
+
-------------------------------
|
4924
|
+
RecordsTest: test_locale_change
|
4925
|
+
-------------------------------
|
4926
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4927
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4928
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:18:32.211261"], ["updated_at", "2015-02-15 00:18:32.211261"]]
|
4929
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:18:32.212030"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:32.212030"]]
|
4930
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4931
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
4932
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
4933
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4934
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
4935
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:18:32.215546"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:18:32.215546"]]
|
4936
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4937
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4938
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4939
|
+
-------------------------------------
|
4940
|
+
GeneratorsTest: test_files_generation
|
4941
|
+
-------------------------------------
|
4942
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4943
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4944
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4945
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
4946
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4947
|
+
FROM sqlite_master
|
4948
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4949
|
+
UNION ALL
|
4950
|
+
SELECT sql
|
4951
|
+
FROM sqlite_temp_master
|
4952
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
4953
|
+
|
4954
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
4955
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
4956
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4957
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4958
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4959
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
4960
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4961
|
+
-------------------------------------
|
4962
|
+
GeneratorsTest: test_files_generation
|
4963
|
+
-------------------------------------
|
4964
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4965
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4966
|
+
-------------------------------------------------
|
4967
|
+
RecordsTest: test_associated_translation_creation
|
4968
|
+
-------------------------------------------------
|
4969
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4970
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
4971
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:18:54.876267"], ["updated_at", "2015-02-15 00:18:54.876267"]]
|
4972
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:18:54.878756"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:54.878756"]]
|
4973
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4974
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4975
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4976
|
+
-------------------------------------------------
|
4977
|
+
RecordsTest: test_associated_translation_deletion
|
4978
|
+
-------------------------------------------------
|
4979
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4980
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4981
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:18:54.882028"], ["updated_at", "2015-02-15 00:18:54.882028"]]
|
4982
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:18:54.882642"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:54.882642"]]
|
4983
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4984
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4985
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
4986
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
4987
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4988
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
4989
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4990
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4991
|
+
------------------------------------------------
|
4992
|
+
RecordsTest: test_associated_translation_edition
|
4993
|
+
------------------------------------------------
|
4994
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4995
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
4996
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:18:54.888225"], ["updated_at", "2015-02-15 00:18:54.888225"]]
|
4997
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:18:54.888894"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:54.888894"]]
|
4998
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4999
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5000
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5001
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:18:54.891102"]]
|
5002
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5003
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5004
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5005
|
+
-------------------------------
|
5006
|
+
RecordsTest: test_locale_change
|
5007
|
+
-------------------------------
|
5008
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5009
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5010
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:18:54.893891"], ["updated_at", "2015-02-15 00:18:54.893891"]]
|
5011
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:18:54.894504"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:18:54.894504"]]
|
5012
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5013
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
5014
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
5015
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5016
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
5017
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:18:54.897287"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:18:54.897287"]]
|
5018
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5019
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5020
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5021
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5022
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
5023
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
5024
|
+
FROM sqlite_master
|
5025
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
5026
|
+
UNION ALL
|
5027
|
+
SELECT sql
|
5028
|
+
FROM sqlite_temp_master
|
5029
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
5030
|
+
|
5031
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
5032
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
5033
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
5034
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5035
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
5036
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
5037
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5038
|
+
-------------------------------------
|
5039
|
+
GeneratorsTest: test_files_generation
|
5040
|
+
-------------------------------------
|
5041
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5042
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5043
|
+
-------------------------------------------------
|
5044
|
+
RecordsTest: test_associated_translation_creation
|
5045
|
+
-------------------------------------------------
|
5046
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5047
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5048
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:22:52.467651"], ["updated_at", "2015-02-15 00:22:52.467651"]]
|
5049
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:22:52.470119"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:22:52.470119"]]
|
5050
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5051
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5052
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5053
|
+
-------------------------------------------------
|
5054
|
+
RecordsTest: test_associated_translation_deletion
|
5055
|
+
-------------------------------------------------
|
5056
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5057
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
5058
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:22:52.473438"], ["updated_at", "2015-02-15 00:22:52.473438"]]
|
5059
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:22:52.474032"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:22:52.474032"]]
|
5060
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5061
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5062
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
5063
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
5064
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5065
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
5066
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5067
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5068
|
+
------------------------------------------------
|
5069
|
+
RecordsTest: test_associated_translation_edition
|
5070
|
+
------------------------------------------------
|
5071
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5072
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
5073
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:22:52.479530"], ["updated_at", "2015-02-15 00:22:52.479530"]]
|
5074
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:22:52.480175"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:22:52.480175"]]
|
5075
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5076
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5077
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5078
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:22:52.482334"]]
|
5079
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5080
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5081
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5082
|
+
-------------------------------
|
5083
|
+
RecordsTest: test_locale_change
|
5084
|
+
-------------------------------
|
5085
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5086
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5087
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:22:52.485212"], ["updated_at", "2015-02-15 00:22:52.485212"]]
|
5088
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:22:52.485839"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:22:52.485839"]]
|
5089
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5090
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
5091
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
5092
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5093
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
5094
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:22:52.488718"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:22:52.488718"]]
|
5095
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5096
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5097
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5098
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5099
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
5100
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
5101
|
+
FROM sqlite_master
|
5102
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
5103
|
+
UNION ALL
|
5104
|
+
SELECT sql
|
5105
|
+
FROM sqlite_temp_master
|
5106
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
5107
|
+
|
5108
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
5109
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
5110
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
5111
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5112
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
5113
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
5114
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5115
|
+
-------------------------------------------------
|
5116
|
+
RecordsTest: test_associated_translation_creation
|
5117
|
+
-------------------------------------------------
|
5118
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5119
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5120
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:23:41.689344"], ["updated_at", "2015-02-15 00:23:41.689344"]]
|
5121
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:23:41.691947"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:23:41.691947"]]
|
5122
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5123
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5124
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5125
|
+
-------------------------------------------------
|
5126
|
+
RecordsTest: test_associated_translation_deletion
|
5127
|
+
-------------------------------------------------
|
5128
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5129
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
5130
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:23:41.695308"], ["updated_at", "2015-02-15 00:23:41.695308"]]
|
5131
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:23:41.695921"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:23:41.695921"]]
|
5132
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5133
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5134
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
5135
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
5136
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5137
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
5138
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5139
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5140
|
+
------------------------------------------------
|
5141
|
+
RecordsTest: test_associated_translation_edition
|
5142
|
+
------------------------------------------------
|
5143
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5144
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
5145
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:23:41.702132"], ["updated_at", "2015-02-15 00:23:41.702132"]]
|
5146
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:23:41.702878"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:23:41.702878"]]
|
5147
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5148
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5149
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5150
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:23:41.705172"]]
|
5151
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5152
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5153
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5154
|
+
-------------------------------
|
5155
|
+
RecordsTest: test_locale_change
|
5156
|
+
-------------------------------
|
5157
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5158
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5159
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:23:41.707990"], ["updated_at", "2015-02-15 00:23:41.707990"]]
|
5160
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:23:41.708605"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:23:41.708605"]]
|
5161
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5162
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
5163
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
5164
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5165
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
5166
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:23:41.711559"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:23:41.711559"]]
|
5167
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5168
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5169
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5170
|
+
-------------------------------------
|
5171
|
+
GeneratorsTest: test_files_generation
|
5172
|
+
-------------------------------------
|
5173
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5174
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5175
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5176
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
5177
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
5178
|
+
FROM sqlite_master
|
5179
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
5180
|
+
UNION ALL
|
5181
|
+
SELECT sql
|
5182
|
+
FROM sqlite_temp_master
|
5183
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
5184
|
+
|
5185
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
5186
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
5187
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
5188
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5189
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
5190
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
5191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5192
|
+
-------------------------------------------------
|
5193
|
+
RecordsTest: test_associated_translation_creation
|
5194
|
+
-------------------------------------------------
|
5195
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5196
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5197
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:30:27.158829"], ["updated_at", "2015-02-15 00:30:27.158829"]]
|
5198
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:30:27.161357"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:30:27.161357"]]
|
5199
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5200
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5201
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5202
|
+
-------------------------------------------------
|
5203
|
+
RecordsTest: test_associated_translation_deletion
|
5204
|
+
-------------------------------------------------
|
5205
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5206
|
+
[1m[35mModelTranslation Exists (0.2ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
5207
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:30:27.167209"], ["updated_at", "2015-02-15 00:30:27.167209"]]
|
5208
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:30:27.168633"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:30:27.168633"]]
|
5209
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5210
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5211
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
5212
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
5213
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5214
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
5215
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5216
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5217
|
+
------------------------------------------------
|
5218
|
+
RecordsTest: test_associated_translation_edition
|
5219
|
+
------------------------------------------------
|
5220
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5221
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
5222
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 00:30:27.176980"], ["updated_at", "2015-02-15 00:30:27.176980"]]
|
5223
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-15 00:30:27.177720"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:30:27.177720"]]
|
5224
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5225
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5226
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5227
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", "2015-02-15 00:30:27.180101"]]
|
5228
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5229
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5230
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5231
|
+
-------------------------------
|
5232
|
+
RecordsTest: test_locale_change
|
5233
|
+
-------------------------------
|
5234
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5235
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5236
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 00:30:27.182910"], ["updated_at", "2015-02-15 00:30:27.182910"]]
|
5237
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:30:27.183490"], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", "2015-02-15 00:30:27.183490"]]
|
5238
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5239
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
5240
|
+
[1m[35mModelTranslation Load (0.0ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
5241
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5242
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
5243
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-15 00:30:27.186359"], ["locale", "es"], ["model_id", 1], ["name", "new name"], ["updated_at", "2015-02-15 00:30:27.186359"]]
|
5244
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5245
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5246
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5247
|
+
-------------------------------------
|
5248
|
+
GeneratorsTest: test_files_generation
|
5249
|
+
-------------------------------------
|
5250
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5251
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
5252
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5253
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
5254
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
5255
|
+
FROM sqlite_master
|
5256
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
5257
|
+
UNION ALL
|
5258
|
+
SELECT sql
|
5259
|
+
FROM sqlite_temp_master
|
5260
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
5261
|
+
|
5262
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
5263
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
5264
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
5265
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5266
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
5267
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
5268
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130819155126')[0m
|
5269
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
5270
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5271
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
5272
|
+
[1m[35m (0.3ms)[0m SELECT sql
|
5273
|
+
FROM sqlite_master
|
5274
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
5275
|
+
UNION ALL
|
5276
|
+
SELECT sql
|
5277
|
+
FROM sqlite_temp_master
|
5278
|
+
WHERE name='index_model_translations_on_locale' AND type='index'
|
5279
|
+
|
5280
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
5281
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
5282
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
5283
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5284
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
5285
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
5286
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5287
|
+
-------------------------------------
|
5288
|
+
GeneratorsTest: test_files_generation
|
5289
|
+
-------------------------------------
|
5290
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5291
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5292
|
+
-------------------------------------------------
|
5293
|
+
RecordsTest: test_associated_translation_deletion
|
5294
|
+
-------------------------------------------------
|
5295
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5296
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5297
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 21:11:03.109184"], ["updated_at", "2015-02-15 21:11:03.109184"]]
|
5298
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("locale", "name", "model_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["locale", "en"], ["name", "name"], ["model_id", 1], ["created_at", "2015-02-15 21:11:03.110580"], ["updated_at", "2015-02-15 21:11:03.110580"]]
|
5299
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5300
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5301
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "model_translations" WHERE "model_translations"."id" = ? [["id", 1]]
|
5302
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "models" WHERE "models"."id" = ?[0m [["id", 1]]
|
5303
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5304
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? LIMIT 1[0m [["model_id", 1]]
|
5305
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5306
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5307
|
+
------------------------------------------------
|
5308
|
+
RecordsTest: test_associated_translation_edition
|
5309
|
+
------------------------------------------------
|
5310
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5311
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5312
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 21:11:03.116714"], ["updated_at", "2015-02-15 21:11:03.116714"]]
|
5313
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("locale", "name", "model_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["locale", "en"], ["name", "name"], ["model_id", 1], ["created_at", "2015-02-15 21:11:03.117851"], ["updated_at", "2015-02-15 21:11:03.117851"]]
|
5314
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5315
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5316
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1
|
5317
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = ?[0m [["name", "new name"], ["updated_at", "2015-02-15 21:11:03.121014"], ["id", 1]]
|
5318
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5319
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5320
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5321
|
+
-------------------------------
|
5322
|
+
RecordsTest: test_locale_change
|
5323
|
+
-------------------------------
|
5324
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5325
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
5326
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-15 21:11:03.125036"], ["updated_at", "2015-02-15 21:11:03.125036"]]
|
5327
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("locale", "name", "model_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["name", "name"], ["model_id", 1], ["created_at", "2015-02-15 21:11:03.125991"], ["updated_at", "2015-02-15 21:11:03.125991"]]
|
5328
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5329
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
|
5330
|
+
[1m[36mModelTranslation Load (0.0ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
5331
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5332
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1[0m
|
5333
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("locale", "name", "model_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "es"], ["name", "new name"], ["model_id", 1], ["created_at", "2015-02-15 21:11:03.131411"], ["updated_at", "2015-02-15 21:11:03.131411"]]
|
5334
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5335
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5336
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5337
|
+
-------------------------------------------------
|
5338
|
+
RecordsTest: test_associated_translation_creation
|
5339
|
+
-------------------------------------------------
|
5340
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5341
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
5342
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-15 21:11:03.134954"], ["updated_at", "2015-02-15 21:11:03.134954"]]
|
5343
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("locale", "name", "model_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["locale", "en"], ["name", "name"], ["model_id", 1], ["created_at", "2015-02-15 21:11:03.135716"], ["updated_at", "2015-02-15 21:11:03.135716"]]
|
5344
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5345
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|