seed_migrations 1.2.0 → 1.3.0

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