seed_migrations 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +1 -0
- data/lib/generators/seed_migrations/templates/seed_migration.rb +1 -1
- data/lib/seed_migrations/seed_migration.rb +46 -42
- data/lib/seed_migrations/version.rb +1 -1
- data/test/dummy/log/test.log +655 -197
- data/test/dummy/tmp/development_secret.txt +1 -0
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8644c598a1993e7cc1ebfc2b7c800fc81cc51003b69edf58ee545bfe1b608c34
|
4
|
+
data.tar.gz: 84822e157091a22320204307c3074177edf09fdd38ee0303bcca373538615ee4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1897dfdade9f1f92d52d0a79d277a4b2855f1ef45ef6f75978ca2dbfb98206a5f75435c2bfc415295b93437768137c14bdd19058ef6f0064514ee14cae9996c0
|
7
|
+
data.tar.gz: 8a6c7ded4dc005955758aae0ce36536452e9b1e00682d21b763658b54cf0b7dbe058f34ee8cf2ef9b0ac0f0068da31dcd45ca4d3bb7e81cf631f9773abf408d5
|
data/Rakefile
CHANGED
@@ -1,60 +1,64 @@
|
|
1
1
|
class ActiveRecord::SeedMigration < ActiveRecord::Base
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
3
|
+
class << self
|
4
|
+
|
5
|
+
def load_seeds
|
6
|
+
puts 'Loading all seeds'
|
7
|
+
ensure_table_is_set
|
8
|
+
Dir.chdir(File.join(Rails.root, "db", "seed"))
|
9
|
+
Dir.glob('*.rb').sort.each do |file_name|
|
10
|
+
if seed_name = file_name.match(/[0-9]+_(.*).rb/).captures.first
|
11
|
+
unless find_by_name(file_name.chomp('.rb'))
|
12
|
+
ActiveRecord::Base.transaction do
|
13
|
+
puts "- Loading data from #{file_name}"
|
14
|
+
load File.join(Rails.root, "db", "seed", file_name)
|
15
|
+
seed_class = begin
|
16
|
+
seed_name.camelize.constantize
|
17
|
+
rescue NameError
|
18
|
+
puts 'No appropriate class specified in the file! Skipping it!'
|
19
|
+
end
|
20
|
+
seed_class.up if seed_class
|
21
|
+
seed = new
|
22
|
+
seed.name = file_name.chomp('.rb')
|
23
|
+
seed.save!
|
17
24
|
end
|
18
|
-
seed_class.up if seed_class
|
19
|
-
seed = new
|
20
|
-
seed.name = file_name.chomp('.rb')
|
21
|
-
seed.save!
|
22
25
|
end
|
23
26
|
end
|
24
27
|
end
|
25
28
|
end
|
26
|
-
end
|
27
29
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
30
|
+
def reload_last_seed
|
31
|
+
puts 'Reloading last seed'
|
32
|
+
ensure_table_is_set
|
33
|
+
if last_seeding = last
|
34
|
+
seed_name = last_seeding.name.match(/[0-9]+_(.*)/).captures.first
|
35
|
+
ActiveRecord::Base.transaction do
|
36
|
+
puts "- Loading data from #{last_seeding.name}.rb"
|
37
|
+
load File.join(Rails.root, "db", "seed", last_seeding.name + '.rb')
|
38
|
+
seed_class = begin
|
39
|
+
seed_name.camelize.constantize
|
40
|
+
rescue NameError
|
41
|
+
puts 'No appropriate class specified in the file! Skipping it!'
|
42
|
+
end
|
43
|
+
seed_class.up if seed_class
|
40
44
|
end
|
41
|
-
seed_class.up if seed_class
|
42
45
|
end
|
43
46
|
end
|
44
|
-
end
|
45
47
|
|
46
|
-
|
48
|
+
private
|
47
49
|
|
48
|
-
|
49
|
-
|
50
|
-
|
50
|
+
def ensure_table_is_set
|
51
|
+
create_seed_migrations_table unless ActiveRecord::Migration.data_source_exists?("seed_migrations")
|
52
|
+
end
|
51
53
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
54
|
+
def create_seed_migrations_table
|
55
|
+
ActiveRecord::Migration.create_table :seed_migrations do |t|
|
56
|
+
t.string :name, :null => false
|
57
|
+
t.timestamps
|
58
|
+
end
|
59
|
+
ActiveRecord::Migration.add_index("seed_migrations", :name, :unique => true)
|
56
60
|
end
|
57
|
-
|
61
|
+
|
58
62
|
end
|
59
63
|
|
60
64
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -1,148 +1,424 @@
|
|
1
|
-
[1m[
|
2
|
-
[1m[
|
1
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3
5
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6
|
+
----------------------------------------------------------------------
|
7
|
+
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
8
|
+
----------------------------------------------------------------------
|
9
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
10
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
11
|
+
--------------------------------------------------
|
12
|
+
SeedMigrationsTest: test_loading_seeds_is_possible
|
13
|
+
--------------------------------------------------
|
14
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
15
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
16
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
17
|
+
[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]]
|
18
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
19
|
+
[1m[36mPlant Create (0.2ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
20
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-04-25 10:11:32.040064"], ["updated_at", "2019-04-25 10:11:32.040064"]]
|
21
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
22
|
+
[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]]
|
23
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
24
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
25
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-04-25 10:11:32.042364"], ["updated_at", "2019-04-25 10:11:32.042364"]]
|
26
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
27
|
+
[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]]
|
28
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
29
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
30
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
31
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
32
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
33
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
34
|
+
------------------------------------------------------------
|
35
|
+
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
36
|
+
------------------------------------------------------------
|
37
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
38
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
39
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
40
|
+
[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]]
|
41
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
42
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
43
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-04-25 10:11:32.048359"], ["updated_at", "2019-04-25 10:11:32.048359"]]
|
44
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
45
|
+
[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]]
|
46
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
47
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
48
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-04-25 10:11:32.050235"], ["updated_at", "2019-04-25 10:11:32.050235"]]
|
49
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50
|
+
[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]]
|
51
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
53
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
54
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
55
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
56
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" ORDER BY "seed_migrations"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
57
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
58
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
59
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
60
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
61
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
62
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4
63
|
--------------------------------------------------------
|
5
64
|
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
6
65
|
--------------------------------------------------------
|
7
|
-
[1m[35m (0.
|
8
|
-
[1m[35m (0.
|
9
|
-
[1m[35m (0.1ms)[0m [1m[
|
10
|
-
[1m[
|
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]]
|
66
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
67
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
68
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
69
|
+
[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
70
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13
|
-
[1m[
|
14
|
-
[1m[
|
71
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
72
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-04-25 10:11:32.059183"], ["updated_at", "2019-04-25 10:11:32.059183"]]
|
15
73
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
16
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
74
|
+
[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
75
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
18
|
-
[1m[
|
19
|
-
[1m[
|
76
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
77
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-04-25 10:11:32.060778"], ["updated_at", "2019-04-25 10:11:32.060778"]]
|
20
78
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
21
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
79
|
+
[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
80
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
23
|
-
[1m[
|
24
|
-
[1m[35m (0.
|
81
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
82
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
25
83
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
26
84
|
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
27
|
-
[1m[36mActiveRecord::SeedMigration Load (
|
28
|
-
[1m[36mActiveRecord::SeedMigration Load (0.
|
29
|
-
[1m[36mActiveRecord::SeedMigration Load (0.
|
85
|
+
[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]]
|
86
|
+
[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]]
|
87
|
+
[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]]
|
30
88
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31
|
-
[1m[
|
32
|
-
[1m[35m (0.
|
89
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
90
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
33
91
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
34
|
-
[1m[35m (0.
|
92
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
93
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
94
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
95
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
96
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
97
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
98
|
+
----------------------------------------------------------------------
|
99
|
+
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
100
|
+
----------------------------------------------------------------------
|
101
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
102
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
103
|
+
--------------------------------------------------------
|
104
|
+
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
105
|
+
--------------------------------------------------------
|
106
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
107
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
108
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
109
|
+
[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]]
|
110
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
111
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
112
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-04-25 10:13:37.790288"], ["updated_at", "2019-04-25 10:13:37.790288"]]
|
113
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
114
|
+
[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]]
|
115
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
116
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
117
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-04-25 10:13:37.792535"], ["updated_at", "2019-04-25 10:13:37.792535"]]
|
118
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
119
|
+
[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]]
|
120
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
121
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
122
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
123
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
124
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
125
|
+
[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]]
|
126
|
+
[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]]
|
127
|
+
[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]]
|
128
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
129
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
130
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
131
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
132
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
35
133
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
36
134
|
--------------------------------------------------
|
37
135
|
SeedMigrationsTest: test_loading_seeds_is_possible
|
38
136
|
--------------------------------------------------
|
39
|
-
[1m[35m (0.
|
40
|
-
[1m[35m (0.
|
41
|
-
[1m[35m (0.
|
42
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
137
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
138
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
139
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
140
|
+
[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]]
|
141
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
142
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
143
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-04-25 10:13:37.801009"], ["updated_at", "2019-04-25 10:13:37.801009"]]
|
144
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
145
|
+
[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]]
|
146
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
147
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
148
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-04-25 10:13:37.803560"], ["updated_at", "2019-04-25 10:13:37.803560"]]
|
149
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
150
|
+
[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]]
|
151
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
152
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
153
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
154
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
155
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
156
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
157
|
+
------------------------------------------------------------
|
158
|
+
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
159
|
+
------------------------------------------------------------
|
160
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
161
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
162
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
163
|
+
[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]]
|
164
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
165
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
166
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-04-25 10:13:37.808857"], ["updated_at", "2019-04-25 10:13:37.808857"]]
|
167
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
168
|
+
[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]]
|
169
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
170
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
171
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-04-25 10:13:37.810513"], ["updated_at", "2019-04-25 10:13:37.810513"]]
|
172
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
173
|
+
[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]]
|
174
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
175
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
176
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
177
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
178
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
179
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" ORDER BY "seed_migrations"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
180
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
181
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
182
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
183
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
184
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
185
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
186
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
187
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
188
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
189
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
190
|
+
--------------------------------------------------
|
191
|
+
SeedMigrationsTest: test_loading_seeds_is_possible
|
192
|
+
--------------------------------------------------
|
193
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
194
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
195
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
196
|
+
[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
197
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
44
|
-
[1m[
|
45
|
-
[1m[
|
198
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
199
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-04-25 10:14:14.532785"], ["updated_at", "2019-04-25 10:14:14.532785"]]
|
46
200
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
47
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
201
|
+
[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
202
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
49
|
-
[1m[
|
50
|
-
[1m[
|
203
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
204
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-04-25 10:14:14.534977"], ["updated_at", "2019-04-25 10:14:14.534977"]]
|
51
205
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
206
|
+
[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
207
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54
|
-
[1m[
|
208
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
55
209
|
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
56
210
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
57
211
|
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
58
212
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
213
|
+
--------------------------------------------------------
|
214
|
+
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
215
|
+
--------------------------------------------------------
|
216
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
217
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
218
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
219
|
+
[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]]
|
220
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
221
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
222
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-04-25 10:14:14.540936"], ["updated_at", "2019-04-25 10:14:14.540936"]]
|
223
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
224
|
+
[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]]
|
225
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
226
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
227
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-04-25 10:14:14.542794"], ["updated_at", "2019-04-25 10:14:14.542794"]]
|
228
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
229
|
+
[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]]
|
230
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
231
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
232
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
233
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
234
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
235
|
+
[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]]
|
236
|
+
[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]]
|
237
|
+
[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]]
|
238
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
239
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
240
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
241
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
242
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
243
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
59
244
|
------------------------------------------------------------
|
60
245
|
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
61
246
|
------------------------------------------------------------
|
62
247
|
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
63
|
-
[1m[35m (0.
|
64
|
-
[1m[35m (0.
|
65
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
248
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
249
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
250
|
+
[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
251
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
67
|
-
[1m[
|
68
|
-
[1m[
|
252
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
253
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-04-25 10:14:14.551681"], ["updated_at", "2019-04-25 10:14:14.551681"]]
|
69
254
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
70
|
-
[1m[36mActiveRecord::SeedMigration Load (0.
|
71
|
-
[1m[35m (0.
|
72
|
-
[1m[
|
73
|
-
[1m[
|
255
|
+
[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]]
|
256
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
257
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
258
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-04-25 10:14:14.553356"], ["updated_at", "2019-04-25 10:14:14.553356"]]
|
74
259
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
75
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
260
|
+
[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
261
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
77
|
-
[1m[
|
262
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
78
263
|
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
79
264
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
80
265
|
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
81
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
266
|
+
[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
267
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
83
|
-
[1m[
|
268
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
84
269
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
85
270
|
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
86
|
-
[1m[35m (0.
|
271
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
87
272
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
88
273
|
----------------------------------------------------------------------
|
89
274
|
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
90
275
|
----------------------------------------------------------------------
|
91
276
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
92
|
-
[1m[
|
93
|
-
[1m[
|
277
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
278
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
279
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
94
280
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
95
281
|
--------------------------------------------------------
|
96
282
|
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
97
283
|
--------------------------------------------------------
|
98
|
-
[1m[35m (0.
|
99
|
-
[1m[35m (0.
|
100
|
-
[1m[35m (0.1ms)[0m [1m[
|
101
|
-
[1m[
|
102
|
-
[1m[
|
284
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
285
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
286
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
287
|
+
[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]]
|
288
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
289
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
290
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:13:21.933244"], ["updated_at", "2019-08-19 10:13:21.933244"]]
|
291
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
292
|
+
[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]]
|
103
293
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
104
|
-
[1m[
|
105
|
-
[1m[
|
294
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
295
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:13:21.935121"], ["updated_at", "2019-08-19 10:13:21.935121"]]
|
106
296
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
107
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
297
|
+
[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]]
|
108
298
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
109
|
-
[1m[
|
110
|
-
[1m[
|
299
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
300
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
301
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
302
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
303
|
+
[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]]
|
304
|
+
[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]]
|
305
|
+
[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]]
|
306
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
307
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
308
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
309
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
310
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
311
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
312
|
+
--------------------------------------------------
|
313
|
+
SeedMigrationsTest: test_loading_seeds_is_possible
|
314
|
+
--------------------------------------------------
|
315
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
316
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
317
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
318
|
+
[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]]
|
319
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
320
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
321
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:13:21.943293"], ["updated_at", "2019-08-19 10:13:21.943293"]]
|
111
322
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
112
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
323
|
+
[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]]
|
113
324
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
114
|
-
[1m[
|
115
|
-
[1m[
|
325
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
326
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:13:21.944753"], ["updated_at", "2019-08-19 10:13:21.944753"]]
|
327
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
328
|
+
[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]]
|
329
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
330
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
331
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
116
332
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
333
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
334
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
335
|
+
------------------------------------------------------------
|
336
|
+
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
337
|
+
------------------------------------------------------------
|
117
338
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
118
|
-
[1m[
|
119
|
-
[1m[
|
120
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
339
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
340
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
341
|
+
[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]]
|
121
342
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
122
|
-
[1m[
|
343
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
344
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:13:21.949755"], ["updated_at", "2019-08-19 10:13:21.949755"]]
|
345
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
346
|
+
[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]]
|
347
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
348
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
349
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:13:21.951538"], ["updated_at", "2019-08-19 10:13:21.951538"]]
|
350
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
351
|
+
[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]]
|
352
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
353
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
123
354
|
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
124
355
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
125
|
-
[1m[35m (0.
|
356
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
357
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" ORDER BY "seed_migrations"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
358
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
359
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
360
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
361
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
362
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
363
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
364
|
+
----------------------------------------------------------------------
|
365
|
+
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
366
|
+
----------------------------------------------------------------------
|
367
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
368
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
369
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
370
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
126
371
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
372
|
+
--------------------------------------------------------
|
373
|
+
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
374
|
+
--------------------------------------------------------
|
375
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
376
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
377
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
378
|
+
[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]]
|
379
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
380
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
381
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:15:22.051274"], ["updated_at", "2019-08-19 10:15:22.051274"]]
|
382
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
383
|
+
[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]]
|
384
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
385
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
386
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:15:22.053337"], ["updated_at", "2019-08-19 10:15:22.053337"]]
|
387
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
388
|
+
[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]]
|
389
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
390
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
391
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
392
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
393
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
394
|
+
[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]]
|
395
|
+
[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]]
|
396
|
+
[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]]
|
397
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
398
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
399
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
400
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
401
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
402
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
127
403
|
--------------------------------------------------
|
128
404
|
SeedMigrationsTest: test_loading_seeds_is_possible
|
129
405
|
--------------------------------------------------
|
130
406
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
131
|
-
[1m[35m (0.
|
132
|
-
[1m[35m (0.
|
133
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
407
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
408
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
409
|
+
[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
410
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
135
|
-
[1m[
|
136
|
-
[1m[
|
411
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
412
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:15:22.062255"], ["updated_at", "2019-08-19 10:15:22.062255"]]
|
137
413
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
138
|
-
[1m[36mActiveRecord::SeedMigration Load (0.
|
139
|
-
[1m[35m (0.
|
140
|
-
[1m[
|
141
|
-
[1m[
|
414
|
+
[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]]
|
415
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
416
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
417
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:15:22.063699"], ["updated_at", "2019-08-19 10:15:22.063699"]]
|
142
418
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
143
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
419
|
+
[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
420
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
145
|
-
[1m[
|
421
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
146
422
|
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
147
423
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
148
424
|
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
@@ -151,212 +427,394 @@ SeedMigrationsTest: test_loading_seeds_is_possible
|
|
151
427
|
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
152
428
|
------------------------------------------------------------
|
153
429
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
154
|
-
[1m[35m (0.
|
155
|
-
[1m[35m (0.
|
156
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
157
|
-
[1m[35m (0.
|
158
|
-
[1m[
|
159
|
-
[1m[
|
430
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
431
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
432
|
+
[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]]
|
433
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
434
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
435
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:15:22.068748"], ["updated_at", "2019-08-19 10:15:22.068748"]]
|
160
436
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
161
|
-
[1m[36mActiveRecord::SeedMigration Load (0.
|
437
|
+
[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]]
|
162
438
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
163
|
-
[1m[
|
164
|
-
[1m[
|
439
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
440
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:15:22.070574"], ["updated_at", "2019-08-19 10:15:22.070574"]]
|
165
441
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
166
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
442
|
+
[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
443
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
168
|
-
[1m[
|
169
|
-
[1m[35m (0.
|
444
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
445
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
170
446
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
171
447
|
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
172
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
173
|
-
[1m[35m (0.
|
174
|
-
[1m[
|
448
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" ORDER BY "seed_migrations"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
449
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
450
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
175
451
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
176
|
-
[1m[35m (0.
|
177
|
-
[1m[35m (
|
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
|
452
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
453
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
185
454
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
186
455
|
----------------------------------------------------------------------
|
187
456
|
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
188
457
|
----------------------------------------------------------------------
|
189
|
-
[1m[35m (0.
|
458
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
459
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
460
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
461
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
190
462
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
191
463
|
--------------------------------------------------------
|
192
464
|
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
193
465
|
--------------------------------------------------------
|
466
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
467
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
468
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
469
|
+
[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]]
|
470
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
471
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
472
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:15:27.208201"], ["updated_at", "2019-08-19 10:15:27.208201"]]
|
473
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
474
|
+
[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]]
|
475
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
476
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
477
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:15:27.210189"], ["updated_at", "2019-08-19 10:15:27.210189"]]
|
478
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
479
|
+
[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]]
|
480
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
481
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
482
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
483
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
194
484
|
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
195
|
-
[1m[
|
196
|
-
[1m[
|
197
|
-
[1m[
|
198
|
-
[1m[
|
199
|
-
[1m[
|
200
|
-
[1m[
|
201
|
-
[1m[
|
485
|
+
[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]]
|
486
|
+
[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]]
|
487
|
+
[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]]
|
488
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
489
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
490
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
491
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
492
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
493
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
494
|
+
------------------------------------------------------------
|
495
|
+
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
496
|
+
------------------------------------------------------------
|
497
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
498
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
499
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
500
|
+
[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]]
|
501
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
502
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
503
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:15:27.218707"], ["updated_at", "2019-08-19 10:15:27.218707"]]
|
202
504
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
203
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
505
|
+
[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
506
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
205
|
-
[1m[
|
206
|
-
[1m[
|
507
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
508
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:15:27.220160"], ["updated_at", "2019-08-19 10:15:27.220160"]]
|
207
509
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
208
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
209
|
-
[1m[35m (0.
|
210
|
-
[1m[
|
211
|
-
[1m[35m (0.
|
510
|
+
[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]]
|
511
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
512
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
513
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
212
514
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
213
515
|
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
214
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
215
|
-
[1m[
|
216
|
-
[1m[
|
516
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" ORDER BY "seed_migrations"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
517
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
518
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
519
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
520
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
521
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
522
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
523
|
+
--------------------------------------------------
|
524
|
+
SeedMigrationsTest: test_loading_seeds_is_possible
|
525
|
+
--------------------------------------------------
|
526
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
527
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
528
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
529
|
+
[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]]
|
530
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
531
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
532
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:15:27.228213"], ["updated_at", "2019-08-19 10:15:27.228213"]]
|
533
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
534
|
+
[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]]
|
535
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
536
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
537
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:15:27.230024"], ["updated_at", "2019-08-19 10:15:27.230024"]]
|
538
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
539
|
+
[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
540
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
218
|
-
[1m[
|
541
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
219
542
|
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
220
543
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
221
|
-
[1m[35m (0.
|
544
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
222
545
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
546
|
+
----------------------------------------------------------------------
|
547
|
+
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
548
|
+
----------------------------------------------------------------------
|
549
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
550
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
551
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
552
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
553
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
223
554
|
--------------------------------------------------
|
224
555
|
SeedMigrationsTest: test_loading_seeds_is_possible
|
225
556
|
--------------------------------------------------
|
226
557
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
227
|
-
[1m[35m (
|
228
|
-
[1m[35m (0.
|
229
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
558
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
559
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
560
|
+
[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
561
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
231
|
-
[1m[
|
232
|
-
[1m[
|
562
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
563
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:48:13.502501"], ["updated_at", "2019-08-19 10:48:13.502501"]]
|
233
564
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
234
|
-
[1m[36mActiveRecord::SeedMigration Load (0.
|
565
|
+
[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]]
|
235
566
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
236
|
-
[1m[
|
237
|
-
[1m[
|
567
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
568
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:48:13.504698"], ["updated_at", "2019-08-19 10:48:13.504698"]]
|
238
569
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
239
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
240
|
-
[1m[35m (0.
|
241
|
-
[1m[
|
570
|
+
[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]]
|
571
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
572
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
242
573
|
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
243
574
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
244
|
-
[1m[35m (0.
|
575
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
245
576
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
246
577
|
------------------------------------------------------------
|
247
578
|
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
248
579
|
------------------------------------------------------------
|
249
580
|
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
250
|
-
[1m[35m (0.
|
251
|
-
[1m[35m (0.
|
252
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
581
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
582
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
583
|
+
[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
584
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
254
|
-
[1m[
|
255
|
-
[1m[
|
585
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
586
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:48:13.510845"], ["updated_at", "2019-08-19 10:48:13.510845"]]
|
256
587
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
257
|
-
[1m[36mActiveRecord::SeedMigration Load (0.
|
588
|
+
[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]]
|
258
589
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
259
|
-
[1m[
|
260
|
-
[1m[
|
261
|
-
[1m[35m (0.
|
262
|
-
[1m[36mActiveRecord::SeedMigration Load (0.
|
590
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
591
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:48:13.512384"], ["updated_at", "2019-08-19 10:48:13.512384"]]
|
592
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
593
|
+
[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]]
|
263
594
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
264
|
-
[1m[
|
265
|
-
[1m[35m (0.
|
266
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
595
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
596
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
267
597
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
268
|
-
[1m[
|
598
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
599
|
+
[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
600
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
270
|
-
[1m[
|
601
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
271
602
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
272
603
|
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
273
|
-
[1m[35m (0.
|
274
|
-
[1m[
|
275
|
-
|
276
|
-
|
604
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
605
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
606
|
+
--------------------------------------------------------
|
607
|
+
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
608
|
+
--------------------------------------------------------
|
609
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
610
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
611
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
612
|
+
[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]]
|
613
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
614
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
615
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-19 10:48:13.520692"], ["updated_at", "2019-08-19 10:48:13.520692"]]
|
616
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
617
|
+
[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]]
|
618
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
619
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
620
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-19 10:48:13.523343"], ["updated_at", "2019-08-19 10:48:13.523343"]]
|
621
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
622
|
+
[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]]
|
623
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
624
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
625
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
626
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
627
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
628
|
+
[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]]
|
629
|
+
[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]]
|
630
|
+
[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]]
|
631
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
632
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
633
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
634
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
635
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
636
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
637
|
+
----------------------------------------------------------------------
|
638
|
+
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
639
|
+
----------------------------------------------------------------------
|
640
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
641
|
+
[1m[35m (2.2ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
642
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
643
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
644
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
277
645
|
--------------------------------------------------------
|
278
646
|
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
279
647
|
--------------------------------------------------------
|
280
648
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
281
|
-
[1m[35m (0.
|
282
|
-
[1m[35m (0.
|
283
|
-
[1m[
|
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]]
|
649
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
650
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
651
|
+
[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
652
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
286
|
-
[1m[
|
287
|
-
[1m[
|
653
|
+
[1m[36mPlant Create (0.3ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
654
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-20 08:24:16.962167"], ["updated_at", "2019-08-20 08:24:16.962167"]]
|
288
655
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
289
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
656
|
+
[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
657
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
291
|
-
[1m[
|
292
|
-
[1m[
|
658
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
659
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-20 08:24:16.964241"], ["updated_at", "2019-08-20 08:24:16.964241"]]
|
293
660
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
294
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
661
|
+
[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
662
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
296
|
-
[1m[
|
297
|
-
[1m[35m (0.
|
298
|
-
[1m[35m (0.
|
663
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
664
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
665
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
299
666
|
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
300
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
301
|
-
[1m[36mActiveRecord::SeedMigration Load (0.
|
302
|
-
[1m[36mActiveRecord::SeedMigration Load (0.
|
667
|
+
[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]]
|
668
|
+
[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]]
|
669
|
+
[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]]
|
303
670
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
304
|
-
[1m[
|
671
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
305
672
|
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
306
673
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
307
|
-
[1m[35m (
|
308
|
-
[1m[35m (0.
|
674
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
675
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
676
|
+
--------------------------------------------------
|
677
|
+
SeedMigrationsTest: test_loading_seeds_is_possible
|
678
|
+
--------------------------------------------------
|
679
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
680
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
681
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
682
|
+
[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]]
|
683
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
684
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
685
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-20 08:24:16.972140"], ["updated_at", "2019-08-20 08:24:16.972140"]]
|
686
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
687
|
+
[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]]
|
688
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
689
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
690
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-20 08:24:16.974179"], ["updated_at", "2019-08-20 08:24:16.974179"]]
|
691
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
692
|
+
[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]]
|
693
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
694
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
695
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
696
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
697
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
698
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
309
699
|
------------------------------------------------------------
|
310
700
|
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
311
701
|
------------------------------------------------------------
|
312
|
-
[1m[35m (0.
|
313
|
-
[1m[35m (0.
|
314
|
-
[1m[35m (0.
|
315
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
702
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
703
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
704
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
705
|
+
[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
706
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
317
|
-
[1m[
|
318
|
-
[1m[
|
707
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
708
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-20 08:24:16.980246"], ["updated_at", "2019-08-20 08:24:16.980246"]]
|
319
709
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
320
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
710
|
+
[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
711
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
322
|
-
[1m[
|
323
|
-
[1m[
|
712
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
713
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-20 08:24:16.981712"], ["updated_at", "2019-08-20 08:24:16.981712"]]
|
324
714
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
325
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
715
|
+
[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
716
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
327
|
-
[1m[
|
328
|
-
[1m[35m (0.
|
717
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
718
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
329
719
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
330
720
|
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
331
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
332
|
-
[1m[35m (0.
|
333
|
-
[1m[
|
721
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" ORDER BY "seed_migrations"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
722
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
723
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
334
724
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
335
725
|
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
726
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
727
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
728
|
+
----------------------------------------------------------------------
|
729
|
+
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|
730
|
+
----------------------------------------------------------------------
|
731
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
732
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
733
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
734
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
735
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
736
|
+
------------------------------------------------------------
|
737
|
+
SeedMigrationsTest: test_reloading_the_last_seed_is_possible
|
738
|
+
------------------------------------------------------------
|
739
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
740
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
741
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
742
|
+
[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]]
|
743
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
744
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
745
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-20 08:24:56.669294"], ["updated_at", "2019-08-20 08:24:56.669294"]]
|
746
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
747
|
+
[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]]
|
748
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
749
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
750
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-20 08:24:56.677649"], ["updated_at", "2019-08-20 08:24:56.677649"]]
|
751
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
752
|
+
[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]]
|
753
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
754
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
755
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
756
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
757
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
758
|
+
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT "seed_migrations".* FROM "seed_migrations" ORDER BY "seed_migrations"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
759
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
760
|
+
[1m[36mPlant Create (0.4ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
761
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
762
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
336
763
|
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
337
764
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
765
|
+
--------------------------------------------------------
|
766
|
+
SeedMigrationsTest: test_loading_seeds_happens_only_once
|
767
|
+
--------------------------------------------------------
|
768
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
769
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
770
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
771
|
+
[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]]
|
772
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
773
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
774
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-20 08:24:56.686132"], ["updated_at", "2019-08-20 08:24:56.686132"]]
|
775
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
776
|
+
[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]]
|
777
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
778
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
779
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-20 08:24:56.687551"], ["updated_at", "2019-08-20 08:24:56.687551"]]
|
780
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
781
|
+
[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]]
|
782
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
783
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
784
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
785
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
786
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
787
|
+
[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]]
|
788
|
+
[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]]
|
789
|
+
[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]]
|
790
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
791
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
792
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
793
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
794
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
795
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
338
796
|
--------------------------------------------------
|
339
797
|
SeedMigrationsTest: test_loading_seeds_is_possible
|
340
798
|
--------------------------------------------------
|
341
799
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
342
|
-
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id"
|
343
|
-
[1m[35m (0.
|
344
|
-
[1m[36mActiveRecord::SeedMigration Load (0.1ms)[0m [1m[34mSELECT
|
800
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "seed_migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
801
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_seed_migrations_on_name" ON "seed_migrations" ("name")[0m
|
802
|
+
[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
803
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
346
|
-
[1m[
|
347
|
-
[1m[
|
804
|
+
[1m[36mPlant Create (0.1ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
805
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133720_add_plant"], ["created_at", "2019-08-20 08:24:56.696366"], ["updated_at", "2019-08-20 08:24:56.696366"]]
|
348
806
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
349
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
807
|
+
[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
808
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
351
|
-
[1m[
|
352
|
-
[1m[
|
809
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
810
|
+
[1m[36mActiveRecord::SeedMigration Create (0.1ms)[0m [1m[32mINSERT INTO "seed_migrations" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "20120604133721_add_one_more_plant"], ["created_at", "2019-08-20 08:24:56.697895"], ["updated_at", "2019-08-20 08:24:56.697895"]]
|
353
811
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
354
|
-
[1m[36mActiveRecord::SeedMigration Load (0.0ms)[0m [1m[34mSELECT
|
812
|
+
[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
813
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
356
|
-
[1m[
|
814
|
+
[1m[36mPlant Create (0.0ms)[0m [1m[32mINSERT INTO "plants" DEFAULT VALUES[0m
|
357
815
|
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
358
816
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "plants"[0m
|
359
|
-
[1m[35m (0.
|
817
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
360
818
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
361
819
|
----------------------------------------------------------------------
|
362
820
|
SeedMigrationGeneratorTest: test_Assert_all_files_are_properly_created
|