seed_migrations 1.0.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/seed_migrations/seed_migration.rb +1 -1
- data/lib/seed_migrations/version.rb +1 -1
- data/test/dummy/config/application.rb +0 -6
- data/test/dummy/config/environments/development.rb +2 -3
- data/test/dummy/config/environments/production.rb +2 -0
- data/test/dummy/config/environments/test.rb +4 -5
- data/test/dummy/log/test.log +364 -0
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f6416eb67f541ace6140ce1c4a9be6d207aa5ac
|
4
|
+
data.tar.gz: cf8baaecfbc6dd82a9413455223bfa0dcef91f39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4597cf6547b54b8849c0af070892ec96ca8b8e970f175b4db4a0f37ec7b90a87f621c60999b2f0b5098e041abf08782292f19c9120dac84428fd6a6a204b8f9
|
7
|
+
data.tar.gz: eed53e69d4c9e282cc0249f0398de983093524d994b5ac27719a315dcdb29b7c697c3bb7bf89d49e8a235d0494cdea7dd9572e1760a79aea2064b570987ec3e9
|
@@ -46,7 +46,7 @@ class ActiveRecord::SeedMigration < ActiveRecord::Base
|
|
46
46
|
private
|
47
47
|
|
48
48
|
def self.ensure_table_is_set
|
49
|
-
create_seed_migrations_table unless ActiveRecord::Migration.
|
49
|
+
create_seed_migrations_table unless ActiveRecord::Migration.data_source_exists?("seed_migrations")
|
50
50
|
end
|
51
51
|
|
52
52
|
def self.create_seed_migrations_table
|
@@ -40,12 +40,6 @@ module Dummy
|
|
40
40
|
# like if you have constraints or database-specific column types
|
41
41
|
# config.active_record.schema_format = :sql
|
42
42
|
|
43
|
-
# Enforce whitelist mode for mass assignment.
|
44
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
45
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
46
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
47
|
-
config.active_record.whitelist_attributes = true
|
48
|
-
|
49
43
|
# Enable the asset pipeline
|
50
44
|
config.assets.enabled = true
|
51
45
|
|
@@ -6,6 +6,8 @@ Dummy::Application.configure do
|
|
6
6
|
# since you don't have to restart the web server when you make code changes.
|
7
7
|
config.cache_classes = false
|
8
8
|
|
9
|
+
config.eager_load = false
|
10
|
+
|
9
11
|
# Show full error reports and disable caching
|
10
12
|
config.consider_all_requests_local = true
|
11
13
|
config.action_controller.perform_caching = false
|
@@ -19,9 +21,6 @@ Dummy::Application.configure do
|
|
19
21
|
# Only use best-standards-support built into browsers
|
20
22
|
config.action_dispatch.best_standards_support = :builtin
|
21
23
|
|
22
|
-
# Raise exception on mass assignment protection for Active Record models
|
23
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
24
|
-
|
25
24
|
# Log the query plan for queries taking more than this (works
|
26
25
|
# with SQLite, MySQL, and PostgreSQL)
|
27
26
|
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
@@ -7,10 +7,12 @@ Dummy::Application.configure do
|
|
7
7
|
# and recreated between test runs. Don't rely on the data there!
|
8
8
|
config.cache_classes = true
|
9
9
|
|
10
|
+
config.eager_load = false
|
11
|
+
|
10
12
|
# Configure static asset server for tests with Cache-Control for performance
|
11
13
|
config.serve_static_assets = true
|
12
|
-
config.
|
13
|
-
|
14
|
+
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
|
15
|
+
|
14
16
|
# Log error messages when you accidentally call methods on nil
|
15
17
|
config.whiny_nils = true
|
16
18
|
|
@@ -29,9 +31,6 @@ Dummy::Application.configure do
|
|
29
31
|
# ActionMailer::Base.deliveries array.
|
30
32
|
config.action_mailer.delivery_method = :test
|
31
33
|
|
32
|
-
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
-
|
35
34
|
# Print deprecation notices to the stderr
|
36
35
|
config.active_support.deprecation = :stderr
|
37
36
|
end
|
@@ -0,0 +1,364 @@
|
|
1
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4
|
+
--------------------------------------------------------
|
5
|
+
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
6
|
+
--------------------------------------------------------
|
7
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
8
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
9
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
10
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
11
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
12
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
14
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:23:35 UTC], ["updated_at", 2017-04-25 14:23:35 UTC]]
|
15
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
16
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
17
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
18
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
19
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:23:35 UTC], ["updated_at", 2017-04-25 14:23:35 UTC]]
|
20
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
21
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
22
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
23
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
24
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
25
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
26
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
27
|
+
[1m[36mActiveRecord::SeedMigration Load (5.4ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
28
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
29
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
30
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
32
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
33
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
34
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
35
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
36
|
+
--------------------------------------------------
|
37
|
+
SeedMigrationsTest: test_loading_seeds_is_possible
|
38
|
+
--------------------------------------------------
|
39
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
40
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
41
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
42
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
43
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
44
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
45
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:23:35 UTC], ["updated_at", 2017-04-25 14:23:35 UTC]]
|
46
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
47
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
48
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
49
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
50
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:23:35 UTC], ["updated_at", 2017-04-25 14:23:35 UTC]]
|
51
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
53
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
55
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
56
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
57
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
58
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
59
|
+
------------------------------------------------------------
|
60
|
+
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
61
|
+
------------------------------------------------------------
|
62
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
63
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
64
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
65
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
66
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
67
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
68
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:23:35 UTC], ["updated_at", 2017-04-25 14:23:35 UTC]]
|
69
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
70
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
71
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
72
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
73
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:23:35 UTC], ["updated_at", 2017-04-25 14:23:35 UTC]]
|
74
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
75
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
76
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
77
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
78
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
79
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
80
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
81
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" ORDER BY "seed_migrations"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
82
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
83
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
84
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
85
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
86
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
87
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
88
|
+
----------------------------------------------------------------------
|
89
|
+
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
90
|
+
----------------------------------------------------------------------
|
91
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
92
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
93
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
94
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
95
|
+
--------------------------------------------------------
|
96
|
+
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
97
|
+
--------------------------------------------------------
|
98
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
99
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
100
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
101
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
102
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
103
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
104
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
105
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:25:37 UTC], ["updated_at", 2017-04-25 14:25:37 UTC]]
|
106
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
107
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
108
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
109
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
110
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:25:37 UTC], ["updated_at", 2017-04-25 14:25:37 UTC]]
|
111
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
112
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
113
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
114
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
115
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
116
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
117
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
118
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
119
|
+
[1m[36mActiveRecord::SeedMigration Load (5.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
120
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
121
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
122
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
123
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
124
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
125
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
126
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
127
|
+
--------------------------------------------------
|
128
|
+
SeedMigrationsTest: test_loading_seeds_is_possible
|
129
|
+
--------------------------------------------------
|
130
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
131
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
132
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
133
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
134
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
135
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
136
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:25:37 UTC], ["updated_at", 2017-04-25 14:25:37 UTC]]
|
137
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
138
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
139
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
140
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
141
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:25:37 UTC], ["updated_at", 2017-04-25 14:25:37 UTC]]
|
142
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
143
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
144
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
145
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
146
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
147
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
148
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
149
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
150
|
+
------------------------------------------------------------
|
151
|
+
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
152
|
+
------------------------------------------------------------
|
153
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
154
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
155
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
156
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
157
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
158
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
159
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:25:37 UTC], ["updated_at", 2017-04-25 14:25:37 UTC]]
|
160
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
161
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
162
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
163
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
164
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:25:37 UTC], ["updated_at", 2017-04-25 14:25:37 UTC]]
|
165
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
166
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
167
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
168
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
169
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
170
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
171
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
172
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" ORDER BY "seed_migrations"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
173
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
174
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
175
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
176
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
177
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
178
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
179
|
+
----------------------------------------------------------------------
|
180
|
+
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
181
|
+
----------------------------------------------------------------------
|
182
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
183
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
184
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
185
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
186
|
+
----------------------------------------------------------------------
|
187
|
+
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
188
|
+
----------------------------------------------------------------------
|
189
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
190
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
191
|
+
--------------------------------------------------------
|
192
|
+
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
193
|
+
--------------------------------------------------------
|
194
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
195
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
196
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
197
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
198
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
199
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
200
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
201
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:26:14 UTC], ["updated_at", 2017-04-25 14:26:14 UTC]]
|
202
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
203
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
204
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
205
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
206
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:26:14 UTC], ["updated_at", 2017-04-25 14:26:14 UTC]]
|
207
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
208
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
209
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
210
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
211
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
212
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
213
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
214
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
215
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
216
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
217
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
218
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
219
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
220
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
221
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
222
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
223
|
+
--------------------------------------------------
|
224
|
+
SeedMigrationsTest: test_loading_seeds_is_possible
|
225
|
+
--------------------------------------------------
|
226
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
227
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
228
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
229
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
230
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
231
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
232
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:26:14 UTC], ["updated_at", 2017-04-25 14:26:14 UTC]]
|
233
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
234
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
235
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
236
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
237
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:26:14 UTC], ["updated_at", 2017-04-25 14:26:14 UTC]]
|
238
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
239
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
240
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
241
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
242
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
243
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
244
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
245
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
246
|
+
------------------------------------------------------------
|
247
|
+
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
248
|
+
------------------------------------------------------------
|
249
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
250
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
251
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
252
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
253
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
254
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
255
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:26:14 UTC], ["updated_at", 2017-04-25 14:26:14 UTC]]
|
256
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
257
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
258
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
259
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
260
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:26:14 UTC], ["updated_at", 2017-04-25 14:26:14 UTC]]
|
261
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
262
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
263
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
264
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
265
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
266
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
267
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
268
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" ORDER BY "seed_migrations"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
269
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
270
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
271
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
272
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
273
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
274
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
275
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
276
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
277
|
+
--------------------------------------------------------
|
278
|
+
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
279
|
+
--------------------------------------------------------
|
280
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
281
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
282
|
+
[1m[35m (0.0ms)[0m [1m[34mselect sqlite_version(*)[0m
|
283
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
284
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
285
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
286
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
287
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:27:30 UTC], ["updated_at", 2017-04-25 14:27:30 UTC]]
|
288
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
289
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
290
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
291
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
292
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:27:30 UTC], ["updated_at", 2017-04-25 14:27:30 UTC]]
|
293
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
294
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
295
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
296
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
297
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
298
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
299
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
300
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
301
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
302
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
303
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
304
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
305
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
306
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
307
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
308
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
309
|
+
------------------------------------------------------------
|
310
|
+
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
311
|
+
------------------------------------------------------------
|
312
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
313
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
314
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
315
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
316
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
317
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
318
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:27:30 UTC], ["updated_at", 2017-04-25 14:27:30 UTC]]
|
319
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
320
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
321
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
322
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
323
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:27:30 UTC], ["updated_at", 2017-04-25 14:27:30 UTC]]
|
324
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
325
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
326
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
327
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
328
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
329
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
330
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
331
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" ORDER BY "seed_migrations"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
332
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
333
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
334
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
335
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
336
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
337
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
338
|
+
--------------------------------------------------
|
339
|
+
SeedMigrationsTest: test_loading_seeds_is_possible
|
340
|
+
--------------------------------------------------
|
341
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
342
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
343
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
344
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133720_add_plant"], ["LIMIT", 1]]
|
345
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
346
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
347
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", 2017-04-25 14:27:30 UTC], ["updated_at", 2017-04-25 14:27:30 UTC]]
|
348
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
349
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133721_add_one_more_plant"], ["LIMIT", 1]]
|
350
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
351
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
352
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", 2017-04-25 14:27:30 UTC], ["updated_at", 2017-04-25 14:27:30 UTC]]
|
353
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
354
|
+
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" WHERE "seed_migrations"."name" = ? LIMIT ?[0m [["name", "20120604133722_add_one_more_plant_failing"], ["LIMIT", 1]]
|
355
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
356
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
357
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
358
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
359
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
360
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
361
|
+
----------------------------------------------------------------------
|
362
|
+
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
363
|
+
----------------------------------------------------------------------
|
364
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seed_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Eversmann
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-04-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -17,20 +17,20 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '5.0'
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 5.0.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - "~>"
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
30
|
+
version: '5.0'
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 5.0.0
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: sqlite3
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- test/dummy/db/seed/20120604133721_add_one_more_plant.rb
|
94
94
|
- test/dummy/db/seed/20120604133722_add_one_more_plant_failing.rb
|
95
95
|
- test/dummy/db/test.sqlite3
|
96
|
+
- test/dummy/log/test.log
|
96
97
|
- test/dummy/public/404.html
|
97
98
|
- test/dummy/public/422.html
|
98
99
|
- test/dummy/public/500.html
|
@@ -120,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
121
|
version: '0'
|
121
122
|
requirements: []
|
122
123
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.2
|
124
|
+
rubygems_version: 2.5.2
|
124
125
|
signing_key:
|
125
126
|
specification_version: 4
|
126
127
|
summary: Extension of seed behaviour for rails applications
|
@@ -154,6 +155,7 @@ test_files:
|
|
154
155
|
- test/dummy/db/seed/20120604133721_add_one_more_plant.rb
|
155
156
|
- test/dummy/db/seed/20120604133722_add_one_more_plant_failing.rb
|
156
157
|
- test/dummy/db/test.sqlite3
|
158
|
+
- test/dummy/log/test.log
|
157
159
|
- test/dummy/public/404.html
|
158
160
|
- test/dummy/public/422.html
|
159
161
|
- test/dummy/public/500.html
|