sortability 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module Sortability
4
4
  module ActiveRecord
5
5
  module ConnectionAdapters
6
6
  RSpec.describe TableDefinition do
7
- let(:table_definition) { ::ActiveRecord::ConnectionAdapters::TableDefinition.new :test }
7
+ let(:table_definition) { ::ActiveRecord::ConnectionAdapters::TableDefinition.new nil, :test }
8
8
 
9
9
  context 'without :on and :null' do
10
10
  let(:options) { { something: :else } }
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sortability
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares
8
8
  - JP Slavinsky
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-05-24 00:00:00.000000000 Z
12
+ date: 2024-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -17,42 +17,48 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: '5'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '7'
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
28
  - - ">="
26
29
  - !ruby/object:Gem::Version
27
- version: '0'
30
+ version: '5'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '7'
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: sqlite3
30
36
  requirement: !ruby/object:Gem::Requirement
31
37
  requirements:
32
- - - ">="
38
+ - - "<"
33
39
  - !ruby/object:Gem::Version
34
- version: '0'
40
+ version: '2.0'
35
41
  type: :development
36
42
  prerelease: false
37
43
  version_requirements: !ruby/object:Gem::Requirement
38
44
  requirements:
39
- - - ">="
45
+ - - "<"
40
46
  - !ruby/object:Gem::Version
41
- version: '0'
47
+ version: '2.0'
42
48
  - !ruby/object:Gem::Dependency
43
49
  name: rspec-rails
44
50
  requirement: !ruby/object:Gem::Requirement
45
51
  requirements:
46
52
  - - ">="
47
53
  - !ruby/object:Gem::Version
48
- version: '3.0'
54
+ version: '0'
49
55
  type: :development
50
56
  prerelease: false
51
57
  version_requirements: !ruby/object:Gem::Requirement
52
58
  requirements:
53
59
  - - ">="
54
60
  - !ruby/object:Gem::Version
55
- version: '3.0'
61
+ version: '0'
56
62
  description: Provides ActiveRecord methods that make it easy to allow users to sort
57
63
  and reorder records in a list
58
64
  email:
@@ -71,6 +77,7 @@ files:
71
77
  - lib/sortability/version.rb
72
78
  - spec/dummy/README.md
73
79
  - spec/dummy/Rakefile
80
+ - spec/dummy/app/assets/config/manifest.js
74
81
  - spec/dummy/app/assets/javascripts/application.js
75
82
  - spec/dummy/app/assets/stylesheets/application.css
76
83
  - spec/dummy/app/controllers/application_controller.rb
@@ -101,12 +108,10 @@ files:
101
108
  - spec/dummy/config/locales/en.yml
102
109
  - spec/dummy/config/routes.rb
103
110
  - spec/dummy/config/secrets.yml
104
- - spec/dummy/db/development.sqlite3
105
111
  - spec/dummy/db/migrate/20190523235417_create_containers.rb
106
112
  - spec/dummy/db/migrate/20190523235430_create_items.rb
107
113
  - spec/dummy/db/schema.rb
108
114
  - spec/dummy/db/test.sqlite3
109
- - spec/dummy/log/development.log
110
115
  - spec/dummy/log/test.log
111
116
  - spec/dummy/public/404.html
112
117
  - spec/dummy/public/422.html
@@ -121,7 +126,7 @@ homepage: https://github.com/openstax/sortability
121
126
  licenses:
122
127
  - MIT
123
128
  metadata: {}
124
- post_install_message:
129
+ post_install_message:
125
130
  rdoc_options: []
126
131
  require_paths:
127
132
  - lib
@@ -136,56 +141,55 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
141
  - !ruby/object:Gem::Version
137
142
  version: '0'
138
143
  requirements: []
139
- rubygems_version: 3.0.1
140
- signing_key:
144
+ rubygems_version: 3.5.17
145
+ signing_key:
141
146
  specification_version: 4
142
147
  summary: Rails gem that provides easy to use ordered records
143
148
  test_files:
144
- - spec/rails_helper.rb
145
- - spec/spec_helper.rb
146
- - spec/dummy/app/models/application_record.rb
147
- - spec/dummy/app/models/item.rb
148
- - spec/dummy/app/models/container.rb
149
+ - spec/dummy/README.md
150
+ - spec/dummy/Rakefile
151
+ - spec/dummy/app/assets/config/manifest.js
149
152
  - spec/dummy/app/assets/javascripts/application.js
150
153
  - spec/dummy/app/assets/stylesheets/application.css
151
- - spec/dummy/app/views/layouts/application.html.erb
152
154
  - spec/dummy/app/controllers/application_controller.rb
153
155
  - spec/dummy/app/helpers/application_helper.rb
154
- - spec/dummy/db/migrate/20190523235430_create_items.rb
155
- - spec/dummy/db/migrate/20190523235417_create_containers.rb
156
- - spec/dummy/db/development.sqlite3
157
- - spec/dummy/db/test.sqlite3
158
- - spec/dummy/db/schema.rb
159
- - spec/dummy/log/test.log
160
- - spec/dummy/log/development.log
161
- - spec/dummy/README.md
162
- - spec/dummy/public/favicon.ico
163
- - spec/dummy/public/422.html
164
- - spec/dummy/public/404.html
165
- - spec/dummy/public/500.html
166
- - spec/dummy/config.ru
156
+ - spec/dummy/app/models/application_record.rb
157
+ - spec/dummy/app/models/container.rb
158
+ - spec/dummy/app/models/item.rb
159
+ - spec/dummy/app/views/layouts/application.html.erb
160
+ - spec/dummy/bin/bundle
167
161
  - spec/dummy/bin/rails
168
162
  - spec/dummy/bin/rake
169
- - spec/dummy/bin/bundle
170
163
  - spec/dummy/config/application.rb
171
- - spec/dummy/config/initializers/filter_parameter_logging.rb
164
+ - spec/dummy/config/boot.rb
165
+ - spec/dummy/config/database.yml
166
+ - spec/dummy/config/environment.rb
167
+ - spec/dummy/config/environments/development.rb
168
+ - spec/dummy/config/environments/production.rb
169
+ - spec/dummy/config/environments/test.rb
172
170
  - spec/dummy/config/initializers/assets.rb
171
+ - spec/dummy/config/initializers/backtrace_silencers.rb
173
172
  - spec/dummy/config/initializers/cookies_serializer.rb
173
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
174
174
  - spec/dummy/config/initializers/inflections.rb
175
- - spec/dummy/config/initializers/backtrace_silencers.rb
176
- - spec/dummy/config/initializers/wrap_parameters.rb
177
- - spec/dummy/config/initializers/session_store.rb
178
175
  - spec/dummy/config/initializers/mime_types.rb
176
+ - spec/dummy/config/initializers/session_store.rb
177
+ - spec/dummy/config/initializers/wrap_parameters.rb
179
178
  - spec/dummy/config/locales/en.yml
180
179
  - spec/dummy/config/routes.rb
181
- - spec/dummy/config/database.yml
182
- - spec/dummy/config/environment.rb
183
- - spec/dummy/config/boot.rb
184
- - spec/dummy/config/environments/production.rb
185
- - spec/dummy/config/environments/test.rb
186
- - spec/dummy/config/environments/development.rb
187
180
  - spec/dummy/config/secrets.yml
188
- - spec/dummy/Rakefile
181
+ - spec/dummy/config.ru
182
+ - spec/dummy/db/migrate/20190523235417_create_containers.rb
183
+ - spec/dummy/db/migrate/20190523235430_create_items.rb
184
+ - spec/dummy/db/schema.rb
185
+ - spec/dummy/db/test.sqlite3
186
+ - spec/dummy/log/test.log
187
+ - spec/dummy/public/404.html
188
+ - spec/dummy/public/422.html
189
+ - spec/dummy/public/500.html
190
+ - spec/dummy/public/favicon.ico
191
+ - spec/lib/sortability/active_record/base_spec.rb
189
192
  - spec/lib/sortability/active_record/connection_adapters/table_definition_spec.rb
190
193
  - spec/lib/sortability/active_record/migration_spec.rb
191
- - spec/lib/sortability/active_record/base_spec.rb
194
+ - spec/rails_helper.rb
195
+ - spec/spec_helper.rb
Binary file
@@ -1,140 +0,0 @@
1
- DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
2
- set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
3
- boolean values and must have old data converted to 1 and 0 (its native boolean
4
- serialization) before setting this flag to true. Conversion can be accomplished
5
- by setting up a rake task which runs
6
-
7
- ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
8
- ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
9
-
10
- for all models and all boolean columns, after which the flag must be set to
11
- true by adding the following to your application.rb file:
12
-
13
- Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
14
- (called from <top (required)> at /home/dante/Desktop/sortability/spec/dummy/config/environment.rb:5)
15
-  (0.0ms) SELECT sqlite_version(*)
16
-  (11.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
17
-  (16.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
18
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
19
-  (0.0ms) begin transaction
20
- ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2019-05-23 15:10:43.061279"], ["updated_at", "2019-05-23 15:10:43.061279"]]
21
-  (10.9ms) commit transaction
22
-  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
23
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
24
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
25
-  (0.0ms) SELECT sqlite_version(*)
26
-  (15.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
27
-  (16.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
28
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
29
- Migrating to CreateContainers (20190523235417)
30
-  (0.0ms) begin transaction
31
-  (0.2ms) CREATE TABLE "containers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "sort_position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
32
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190523235417"]]
33
-  (14.3ms) commit transaction
34
- Migrating to CreateItems (20190523235430)
35
-  (0.0ms) begin transaction
36
-  (0.1ms) CREATE TABLE "items" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "container_id" integer, "sort_position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_9ab3f324f3"
37
- FOREIGN KEY ("container_id")
38
- REFERENCES "containers" ("id")
39
- )
40
-  (0.1ms) CREATE INDEX "index_items_on_container_id" ON "items" ("container_id")
41
-  (0.1ms) CREATE UNIQUE INDEX "index_{:scope=>:container_id}_on_sort_position" ON "{:scope=>:container_id}" ("sort_position")
42
-  (0.0ms) rollback transaction
43
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
44
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
45
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
46
-  (0.0ms) begin transaction
47
- ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2019-05-23 23:56:43.199474"], ["updated_at", "2019-05-23 23:56:43.199474"]]
48
-  (16.5ms) commit transaction
49
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
50
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
51
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
52
-  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
53
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
54
-  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
55
-  (0.0ms) SELECT sqlite_version(*)
56
-  (15.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
57
-  (16.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
58
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
59
- Migrating to CreateContainers (20190523235417)
60
-  (0.0ms) begin transaction
61
-  (0.1ms) CREATE TABLE "containers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "sort_position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
62
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190523235417"]]
63
-  (13.7ms) commit transaction
64
- Migrating to CreateItems (20190523235430)
65
-  (0.0ms) begin transaction
66
-  (0.1ms) CREATE TABLE "items" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "container_id" integer, "sort_position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_9ab3f324f3"
67
- FOREIGN KEY ("container_id")
68
- REFERENCES "containers" ("id")
69
- )
70
-  (0.1ms) CREATE INDEX "index_items_on_container_id" ON "items" ("container_id")
71
-  (0.1ms) CREATE UNIQUE INDEX "index_items_on_container_id_and_sort_position" ON "items" ("container_id", "sort_position")
72
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190523235430"]]
73
-  (15.6ms) commit transaction
74
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
75
-  (0.0ms) begin transaction
76
- ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2019-05-23 23:56:44.736059"], ["updated_at", "2019-05-23 23:56:44.736059"]]
77
-  (14.2ms) commit transaction
78
-  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
79
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
80
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
81
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
82
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
83
-  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
84
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
85
-  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
86
-  (0.0ms) SELECT sqlite_version(*)
87
-  (18.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
88
-  (16.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
89
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
90
- Migrating to CreateContainers (20190523235417)
91
-  (0.0ms) begin transaction
92
-  (0.1ms) CREATE TABLE "containers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "sort_position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
93
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190523235417"]]
94
-  (15.0ms) commit transaction
95
- Migrating to CreateItems (20190523235430)
96
-  (0.0ms) begin transaction
97
-  (0.1ms) CREATE TABLE "items" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "container_id" integer NOT NULL, "sort_position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_9ab3f324f3"
98
- FOREIGN KEY ("container_id")
99
- REFERENCES "containers" ("id")
100
- )
101
-  (0.1ms) CREATE INDEX "index_items_on_container_id" ON "items" ("container_id")
102
-  (0.1ms) CREATE UNIQUE INDEX "index_items_on_container_id_and_sort_position" ON "items" ("container_id", "sort_position")
103
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190523235430"]]
104
-  (15.6ms) commit transaction
105
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
106
-  (0.0ms) begin transaction
107
- ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2019-05-23 23:57:06.155960"], ["updated_at", "2019-05-23 23:57:06.155960"]]
108
-  (16.2ms) commit transaction
109
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
110
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
111
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
112
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
113
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
114
-  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
115
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
116
-  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
117
-  (0.0ms) SELECT sqlite_version(*)
118
-  (15.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
119
-  (16.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
120
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
121
- Migrating to CreateContainers (20190523235417)
122
-  (0.0ms) begin transaction
123
-  (0.1ms) CREATE TABLE "containers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "sort_position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
124
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190523235417"]]
125
-  (14.5ms) commit transaction
126
- Migrating to CreateItems (20190523235430)
127
-  (0.0ms) begin transaction
128
-  (0.1ms) CREATE TABLE "items" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "container_id" integer NOT NULL, "sort_position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_9ab3f324f3"
129
- FOREIGN KEY ("container_id")
130
- REFERENCES "containers" ("id")
131
- )
132
-  (0.1ms) CREATE UNIQUE INDEX "index_items_on_container_id_and_sort_position" ON "items" ("container_id", "sort_position")
133
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190523235430"]]
134
-  (15.8ms) commit transaction
135
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
136
-  (0.0ms) begin transaction
137
- ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2019-05-23 23:57:43.652229"], ["updated_at", "2019-05-23 23:57:43.652229"]]
138
-  (13.6ms) commit transaction
139
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
140
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC