activerecord-spanner-adapter 1.6.3 → 2.0.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 +4 -4
- data/.github/workflows/acceptance-tests-on-emulator.yaml +3 -7
- data/.github/workflows/acceptance-tests-on-production.yaml +1 -1
- data/.github/workflows/ci.yaml +3 -7
- data/.github/workflows/nightly-acceptance-tests-on-emulator.yaml +4 -33
- data/.github/workflows/nightly-acceptance-tests-on-production.yaml +1 -1
- data/.github/workflows/nightly-unit-tests.yaml +5 -33
- data/.github/workflows/rubocop.yaml +1 -1
- data/.github/workflows/samples.yaml +30 -0
- data/.kokoro/populate-secrets.sh +5 -1
- data/.kokoro/release.cfg +22 -12
- data/.kokoro/release.sh +1 -3
- data/.kokoro/trampoline_v2.sh +19 -11
- data/.release-please-manifest.json +1 -1
- data/.rubocop.yml +2 -2
- data/.trampolinerc +6 -1
- data/CHANGELOG.md +37 -0
- data/Gemfile +7 -5
- data/README.md +11 -9
- data/Rakefile +2 -2
- data/acceptance/cases/migration/command_recorder_test.rb +7 -38
- data/acceptance/cases/migration/references_index_test.rb +2 -11
- data/acceptance/cases/migration/schema_dumper_test.rb +21 -9
- data/acceptance/cases/models/binary_identifiers.rb +97 -0
- data/acceptance/cases/models/insert_all_test.rb +22 -7
- data/acceptance/cases/sessions/session_not_found_test.rb +2 -0
- data/acceptance/cases/tasks/database_tasks_test.rb +1 -0
- data/acceptance/models/binary_project.rb +20 -0
- data/acceptance/models/string_io.rb +28 -0
- data/acceptance/models/user.rb +20 -0
- data/acceptance/test_helper.rb +6 -1
- data/activerecord-spanner-adapter.gemspec +3 -3
- data/benchmarks/application.rb +3 -7
- data/examples/snippets/Rakefile +27 -5
- data/examples/snippets/array-data-type/application.rb +1 -5
- data/examples/snippets/array-data-type/config/database.yml +1 -0
- data/examples/snippets/bit-reversed-sequence/application.rb +0 -4
- data/examples/snippets/bit-reversed-sequence/config/database.yml +1 -0
- data/examples/snippets/bit-reversed-sequence/db/seeds.rb +2 -2
- data/examples/snippets/bulk-insert/application.rb +1 -5
- data/examples/snippets/bulk-insert/config/database.yml +1 -0
- data/examples/snippets/commit-timestamp/application.rb +0 -4
- data/examples/snippets/commit-timestamp/config/database.yml +1 -0
- data/examples/snippets/config/environment.rb +5 -0
- data/examples/snippets/create-records/application.rb +1 -5
- data/examples/snippets/create-records/config/database.yml +1 -0
- data/examples/snippets/date-data-type/application.rb +1 -5
- data/examples/snippets/date-data-type/config/database.yml +1 -0
- data/examples/snippets/date-data-type/db/seeds.rb +1 -1
- data/examples/snippets/generated-column/application.rb +0 -4
- data/examples/snippets/generated-column/config/database.yml +1 -0
- data/examples/snippets/generated-column/db/seeds.rb +1 -1
- data/examples/snippets/hints/application.rb +0 -4
- data/examples/snippets/hints/config/database.yml +1 -0
- data/examples/snippets/hints/db/seeds.rb +1 -1
- data/examples/snippets/interleaved-tables/application.rb +1 -5
- data/examples/snippets/interleaved-tables/config/database.yml +1 -0
- data/examples/snippets/interleaved-tables/db/seeds.rb +1 -1
- data/examples/snippets/interleaved-tables/models/album.rb +6 -2
- data/examples/snippets/interleaved-tables/models/track.rb +5 -1
- data/examples/snippets/interleaved-tables-before-7.1/application.rb +1 -5
- data/examples/snippets/interleaved-tables-before-7.1/config/database.yml +1 -0
- data/examples/snippets/interleaved-tables-before-7.1/db/seeds.rb +1 -1
- data/examples/snippets/migrations/application.rb +0 -4
- data/examples/snippets/migrations/config/database.yml +1 -0
- data/examples/snippets/mutations/application.rb +1 -5
- data/examples/snippets/mutations/config/database.yml +1 -0
- data/examples/snippets/mutations/db/seeds.rb +1 -1
- data/examples/snippets/optimistic-locking/application.rb +0 -4
- data/examples/snippets/optimistic-locking/config/database.yml +1 -0
- data/examples/snippets/optimistic-locking/db/seeds.rb +1 -1
- data/examples/snippets/partitioned-dml/application.rb +0 -4
- data/examples/snippets/partitioned-dml/config/database.yml +1 -0
- data/examples/snippets/partitioned-dml/db/seeds.rb +1 -1
- data/examples/snippets/query-logs/application.rb +15 -13
- data/examples/snippets/query-logs/config/database.yml +1 -0
- data/examples/snippets/query-logs/db/seeds.rb +1 -1
- data/examples/snippets/quickstart/application.rb +0 -4
- data/examples/snippets/quickstart/config/database.yml +1 -0
- data/examples/snippets/quickstart/db/seeds.rb +1 -1
- data/examples/snippets/read-only-transactions/application.rb +0 -4
- data/examples/snippets/read-only-transactions/config/database.yml +1 -0
- data/examples/snippets/read-only-transactions/db/seeds.rb +1 -1
- data/examples/snippets/read-write-transactions/application.rb +2 -6
- data/examples/snippets/read-write-transactions/config/database.yml +1 -0
- data/examples/snippets/read-write-transactions/db/seeds.rb +1 -1
- data/examples/snippets/stale-reads/application.rb +0 -4
- data/examples/snippets/stale-reads/config/database.yml +1 -0
- data/examples/snippets/stale-reads/db/seeds.rb +1 -1
- data/examples/snippets/tags/application.rb +0 -4
- data/examples/snippets/tags/config/database.yml +1 -0
- data/examples/snippets/tags/db/seeds.rb +1 -1
- data/examples/snippets/timestamp-data-type/application.rb +0 -4
- data/examples/snippets/timestamp-data-type/config/database.yml +1 -0
- data/lib/active_record/connection_adapters/spanner/column.rb +3 -3
- data/lib/active_record/connection_adapters/spanner/database_statements.rb +37 -23
- data/lib/active_record/connection_adapters/spanner/quoting.rb +19 -6
- data/lib/active_record/connection_adapters/spanner/schema_creation.rb +7 -9
- data/lib/active_record/connection_adapters/spanner/schema_definitions.rb +12 -2
- data/lib/active_record/connection_adapters/spanner/schema_statements.rb +28 -46
- data/lib/active_record/connection_adapters/spanner/type_metadata.rb +4 -6
- data/lib/active_record/connection_adapters/spanner_adapter.rb +54 -27
- data/lib/active_record/tasks/spanner_database_tasks.rb +4 -4
- data/lib/active_record/type/spanner/array.rb +4 -0
- data/lib/active_record/type/spanner/bytes.rb +10 -0
- data/lib/activerecord-spanner-adapter.rb +5 -1
- data/lib/activerecord_spanner_adapter/base.rb +58 -30
- data/lib/activerecord_spanner_adapter/connection.rb +9 -5
- data/lib/activerecord_spanner_adapter/foreign_key.rb +9 -2
- data/lib/activerecord_spanner_adapter/index/column.rb +6 -1
- data/lib/activerecord_spanner_adapter/index.rb +10 -2
- data/lib/activerecord_spanner_adapter/information_schema.rb +1 -1
- data/lib/activerecord_spanner_adapter/primary_key.rb +2 -2
- data/lib/activerecord_spanner_adapter/table/column.rb +12 -3
- data/lib/activerecord_spanner_adapter/table.rb +8 -2
- data/lib/activerecord_spanner_adapter/transaction.rb +1 -1
- data/lib/activerecord_spanner_adapter/version.rb +1 -1
- data/lib/arel/visitors/spanner.rb +16 -11
- data/lib/spanner_client_ext.rb +4 -3
- metadata +15 -34
- data/examples/snippets/array-data-type/db/schema.rb +0 -31
- data/examples/snippets/bit-reversed-sequence/db/schema.rb +0 -31
- data/examples/snippets/bulk-insert/db/schema.rb +0 -31
- data/examples/snippets/commit-timestamp/db/schema.rb +0 -34
- data/examples/snippets/create-records/db/schema.rb +0 -31
- data/examples/snippets/date-data-type/db/schema.rb +0 -26
- data/examples/snippets/generated-column/db/schema.rb +0 -26
- data/examples/snippets/hints/db/schema.rb +0 -33
- data/examples/snippets/interleaved-tables/db/schema.rb +0 -39
- data/examples/snippets/interleaved-tables-before-7.1/db/schema.rb +0 -37
- data/examples/snippets/migrations/db/schema.rb +0 -38
- data/examples/snippets/mutations/db/schema.rb +0 -32
- data/examples/snippets/optimistic-locking/db/schema.rb +0 -34
- data/examples/snippets/partitioned-dml/db/schema.rb +0 -31
- data/examples/snippets/query-logs/db/schema.rb +0 -31
- data/examples/snippets/quickstart/db/schema.rb +0 -31
- data/examples/snippets/read-only-transactions/db/schema.rb +0 -31
- data/examples/snippets/read-write-transactions/db/schema.rb +0 -32
- data/examples/snippets/stale-reads/db/schema.rb +0 -31
- data/examples/snippets/tags/db/schema.rb +0 -31
- data/examples/snippets/timestamp-data-type/db/schema.rb +0 -26
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-spanner-adapter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2025-01-23 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: google-cloud-spanner
|
|
@@ -44,20 +43,20 @@ dependencies:
|
|
|
44
43
|
requirements:
|
|
45
44
|
- - ">="
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 6.
|
|
46
|
+
version: '6.1'
|
|
48
47
|
- - "<"
|
|
49
48
|
- !ruby/object:Gem::Version
|
|
50
|
-
version: '
|
|
49
|
+
version: '9'
|
|
51
50
|
type: :runtime
|
|
52
51
|
prerelease: false
|
|
53
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
54
53
|
requirements:
|
|
55
54
|
- - ">="
|
|
56
55
|
- !ruby/object:Gem::Version
|
|
57
|
-
version: 6.
|
|
56
|
+
version: '6.1'
|
|
58
57
|
- - "<"
|
|
59
58
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '
|
|
59
|
+
version: '9'
|
|
61
60
|
- !ruby/object:Gem::Dependency
|
|
62
61
|
name: autotest-suffix
|
|
63
62
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -92,14 +91,14 @@ dependencies:
|
|
|
92
91
|
requirements:
|
|
93
92
|
- - "~>"
|
|
94
93
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: 1.
|
|
94
|
+
version: 1.30.1
|
|
96
95
|
type: :development
|
|
97
96
|
prerelease: false
|
|
98
97
|
version_requirements: !ruby/object:Gem::Requirement
|
|
99
98
|
requirements:
|
|
100
99
|
- - "~>"
|
|
101
100
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: 1.
|
|
101
|
+
version: 1.30.1
|
|
103
102
|
- !ruby/object:Gem::Dependency
|
|
104
103
|
name: minitest
|
|
105
104
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -245,6 +244,7 @@ files:
|
|
|
245
244
|
- ".github/workflows/nightly-acceptance-tests-on-production.yaml"
|
|
246
245
|
- ".github/workflows/nightly-unit-tests.yaml"
|
|
247
246
|
- ".github/workflows/rubocop.yaml"
|
|
247
|
+
- ".github/workflows/samples.yaml"
|
|
248
248
|
- ".gitignore"
|
|
249
249
|
- ".kokoro/populate-secrets.sh"
|
|
250
250
|
- ".kokoro/release.cfg"
|
|
@@ -283,6 +283,7 @@ files:
|
|
|
283
283
|
- acceptance/cases/migration/references_statements_test.rb
|
|
284
284
|
- acceptance/cases/migration/rename_column_test.rb
|
|
285
285
|
- acceptance/cases/migration/schema_dumper_test.rb
|
|
286
|
+
- acceptance/cases/models/binary_identifiers.rb
|
|
286
287
|
- acceptance/cases/models/calculation_query_test.rb
|
|
287
288
|
- acceptance/cases/models/default_value_test.rb
|
|
288
289
|
- acceptance/cases/models/generated_column_test.rb
|
|
@@ -313,6 +314,7 @@ files:
|
|
|
313
314
|
- acceptance/models/album.rb
|
|
314
315
|
- acceptance/models/all_types.rb
|
|
315
316
|
- acceptance/models/author.rb
|
|
317
|
+
- acceptance/models/binary_project.rb
|
|
316
318
|
- acceptance/models/club.rb
|
|
317
319
|
- acceptance/models/comment.rb
|
|
318
320
|
- acceptance/models/customer.rb
|
|
@@ -324,9 +326,11 @@ files:
|
|
|
324
326
|
- acceptance/models/organization.rb
|
|
325
327
|
- acceptance/models/post.rb
|
|
326
328
|
- acceptance/models/singer.rb
|
|
329
|
+
- acceptance/models/string_io.rb
|
|
327
330
|
- acceptance/models/table_with_sequence.rb
|
|
328
331
|
- acceptance/models/track.rb
|
|
329
332
|
- acceptance/models/transaction.rb
|
|
333
|
+
- acceptance/models/user.rb
|
|
330
334
|
- acceptance/schema/schema.rb
|
|
331
335
|
- acceptance/test_helper.rb
|
|
332
336
|
- acceptance/test_helpers/with_separate_database.rb
|
|
@@ -351,7 +355,6 @@ files:
|
|
|
351
355
|
- examples/snippets/array-data-type/application.rb
|
|
352
356
|
- examples/snippets/array-data-type/config/database.yml
|
|
353
357
|
- examples/snippets/array-data-type/db/migrate/01_create_tables.rb
|
|
354
|
-
- examples/snippets/array-data-type/db/schema.rb
|
|
355
358
|
- examples/snippets/array-data-type/db/seeds.rb
|
|
356
359
|
- examples/snippets/array-data-type/models/entity_with_array_types.rb
|
|
357
360
|
- examples/snippets/bin/create_emulator_instance.rb
|
|
@@ -360,7 +363,6 @@ files:
|
|
|
360
363
|
- examples/snippets/bit-reversed-sequence/application.rb
|
|
361
364
|
- examples/snippets/bit-reversed-sequence/config/database.yml
|
|
362
365
|
- examples/snippets/bit-reversed-sequence/db/migrate/01_create_tables.rb
|
|
363
|
-
- examples/snippets/bit-reversed-sequence/db/schema.rb
|
|
364
366
|
- examples/snippets/bit-reversed-sequence/db/seeds.rb
|
|
365
367
|
- examples/snippets/bit-reversed-sequence/models/album.rb
|
|
366
368
|
- examples/snippets/bit-reversed-sequence/models/singer.rb
|
|
@@ -369,7 +371,6 @@ files:
|
|
|
369
371
|
- examples/snippets/bulk-insert/application.rb
|
|
370
372
|
- examples/snippets/bulk-insert/config/database.yml
|
|
371
373
|
- examples/snippets/bulk-insert/db/migrate/01_create_tables.rb
|
|
372
|
-
- examples/snippets/bulk-insert/db/schema.rb
|
|
373
374
|
- examples/snippets/bulk-insert/db/seeds.rb
|
|
374
375
|
- examples/snippets/bulk-insert/models/album.rb
|
|
375
376
|
- examples/snippets/bulk-insert/models/singer.rb
|
|
@@ -378,7 +379,6 @@ files:
|
|
|
378
379
|
- examples/snippets/commit-timestamp/application.rb
|
|
379
380
|
- examples/snippets/commit-timestamp/config/database.yml
|
|
380
381
|
- examples/snippets/commit-timestamp/db/migrate/01_create_tables.rb
|
|
381
|
-
- examples/snippets/commit-timestamp/db/schema.rb
|
|
382
382
|
- examples/snippets/commit-timestamp/db/seeds.rb
|
|
383
383
|
- examples/snippets/commit-timestamp/models/album.rb
|
|
384
384
|
- examples/snippets/commit-timestamp/models/singer.rb
|
|
@@ -388,7 +388,6 @@ files:
|
|
|
388
388
|
- examples/snippets/create-records/application.rb
|
|
389
389
|
- examples/snippets/create-records/config/database.yml
|
|
390
390
|
- examples/snippets/create-records/db/migrate/01_create_tables.rb
|
|
391
|
-
- examples/snippets/create-records/db/schema.rb
|
|
392
391
|
- examples/snippets/create-records/db/seeds.rb
|
|
393
392
|
- examples/snippets/create-records/models/album.rb
|
|
394
393
|
- examples/snippets/create-records/models/singer.rb
|
|
@@ -397,7 +396,6 @@ files:
|
|
|
397
396
|
- examples/snippets/date-data-type/application.rb
|
|
398
397
|
- examples/snippets/date-data-type/config/database.yml
|
|
399
398
|
- examples/snippets/date-data-type/db/migrate/01_create_tables.rb
|
|
400
|
-
- examples/snippets/date-data-type/db/schema.rb
|
|
401
399
|
- examples/snippets/date-data-type/db/seeds.rb
|
|
402
400
|
- examples/snippets/date-data-type/models/singer.rb
|
|
403
401
|
- examples/snippets/generated-column/README.md
|
|
@@ -405,7 +403,6 @@ files:
|
|
|
405
403
|
- examples/snippets/generated-column/application.rb
|
|
406
404
|
- examples/snippets/generated-column/config/database.yml
|
|
407
405
|
- examples/snippets/generated-column/db/migrate/01_create_tables.rb
|
|
408
|
-
- examples/snippets/generated-column/db/schema.rb
|
|
409
406
|
- examples/snippets/generated-column/db/seeds.rb
|
|
410
407
|
- examples/snippets/generated-column/models/singer.rb
|
|
411
408
|
- examples/snippets/hints/README.md
|
|
@@ -413,7 +410,6 @@ files:
|
|
|
413
410
|
- examples/snippets/hints/application.rb
|
|
414
411
|
- examples/snippets/hints/config/database.yml
|
|
415
412
|
- examples/snippets/hints/db/migrate/01_create_tables.rb
|
|
416
|
-
- examples/snippets/hints/db/schema.rb
|
|
417
413
|
- examples/snippets/hints/db/seeds.rb
|
|
418
414
|
- examples/snippets/hints/models/album.rb
|
|
419
415
|
- examples/snippets/hints/models/singer.rb
|
|
@@ -422,7 +418,6 @@ files:
|
|
|
422
418
|
- examples/snippets/interleaved-tables-before-7.1/application.rb
|
|
423
419
|
- examples/snippets/interleaved-tables-before-7.1/config/database.yml
|
|
424
420
|
- examples/snippets/interleaved-tables-before-7.1/db/migrate/01_create_tables.rb
|
|
425
|
-
- examples/snippets/interleaved-tables-before-7.1/db/schema.rb
|
|
426
421
|
- examples/snippets/interleaved-tables-before-7.1/db/seeds.rb
|
|
427
422
|
- examples/snippets/interleaved-tables-before-7.1/models/album.rb
|
|
428
423
|
- examples/snippets/interleaved-tables-before-7.1/models/singer.rb
|
|
@@ -432,7 +427,6 @@ files:
|
|
|
432
427
|
- examples/snippets/interleaved-tables/application.rb
|
|
433
428
|
- examples/snippets/interleaved-tables/config/database.yml
|
|
434
429
|
- examples/snippets/interleaved-tables/db/migrate/01_create_tables.rb
|
|
435
|
-
- examples/snippets/interleaved-tables/db/schema.rb
|
|
436
430
|
- examples/snippets/interleaved-tables/db/seeds.rb
|
|
437
431
|
- examples/snippets/interleaved-tables/models/album.rb
|
|
438
432
|
- examples/snippets/interleaved-tables/models/singer.rb
|
|
@@ -442,7 +436,6 @@ files:
|
|
|
442
436
|
- examples/snippets/migrations/application.rb
|
|
443
437
|
- examples/snippets/migrations/config/database.yml
|
|
444
438
|
- examples/snippets/migrations/db/migrate/01_create_tables.rb
|
|
445
|
-
- examples/snippets/migrations/db/schema.rb
|
|
446
439
|
- examples/snippets/migrations/db/seeds.rb
|
|
447
440
|
- examples/snippets/migrations/models/album.rb
|
|
448
441
|
- examples/snippets/migrations/models/singer.rb
|
|
@@ -452,7 +445,6 @@ files:
|
|
|
452
445
|
- examples/snippets/mutations/application.rb
|
|
453
446
|
- examples/snippets/mutations/config/database.yml
|
|
454
447
|
- examples/snippets/mutations/db/migrate/01_create_tables.rb
|
|
455
|
-
- examples/snippets/mutations/db/schema.rb
|
|
456
448
|
- examples/snippets/mutations/db/seeds.rb
|
|
457
449
|
- examples/snippets/mutations/models/album.rb
|
|
458
450
|
- examples/snippets/mutations/models/singer.rb
|
|
@@ -461,7 +453,6 @@ files:
|
|
|
461
453
|
- examples/snippets/optimistic-locking/application.rb
|
|
462
454
|
- examples/snippets/optimistic-locking/config/database.yml
|
|
463
455
|
- examples/snippets/optimistic-locking/db/migrate/01_create_tables.rb
|
|
464
|
-
- examples/snippets/optimistic-locking/db/schema.rb
|
|
465
456
|
- examples/snippets/optimistic-locking/db/seeds.rb
|
|
466
457
|
- examples/snippets/optimistic-locking/models/album.rb
|
|
467
458
|
- examples/snippets/optimistic-locking/models/singer.rb
|
|
@@ -470,7 +461,6 @@ files:
|
|
|
470
461
|
- examples/snippets/partitioned-dml/application.rb
|
|
471
462
|
- examples/snippets/partitioned-dml/config/database.yml
|
|
472
463
|
- examples/snippets/partitioned-dml/db/migrate/01_create_tables.rb
|
|
473
|
-
- examples/snippets/partitioned-dml/db/schema.rb
|
|
474
464
|
- examples/snippets/partitioned-dml/db/seeds.rb
|
|
475
465
|
- examples/snippets/partitioned-dml/models/album.rb
|
|
476
466
|
- examples/snippets/partitioned-dml/models/singer.rb
|
|
@@ -479,7 +469,6 @@ files:
|
|
|
479
469
|
- examples/snippets/query-logs/application.rb
|
|
480
470
|
- examples/snippets/query-logs/config/database.yml
|
|
481
471
|
- examples/snippets/query-logs/db/migrate/01_create_tables.rb
|
|
482
|
-
- examples/snippets/query-logs/db/schema.rb
|
|
483
472
|
- examples/snippets/query-logs/db/seeds.rb
|
|
484
473
|
- examples/snippets/query-logs/models/album.rb
|
|
485
474
|
- examples/snippets/query-logs/models/singer.rb
|
|
@@ -488,7 +477,6 @@ files:
|
|
|
488
477
|
- examples/snippets/quickstart/application.rb
|
|
489
478
|
- examples/snippets/quickstart/config/database.yml
|
|
490
479
|
- examples/snippets/quickstart/db/migrate/01_create_tables.rb
|
|
491
|
-
- examples/snippets/quickstart/db/schema.rb
|
|
492
480
|
- examples/snippets/quickstart/db/seeds.rb
|
|
493
481
|
- examples/snippets/quickstart/models/album.rb
|
|
494
482
|
- examples/snippets/quickstart/models/singer.rb
|
|
@@ -497,7 +485,6 @@ files:
|
|
|
497
485
|
- examples/snippets/read-only-transactions/application.rb
|
|
498
486
|
- examples/snippets/read-only-transactions/config/database.yml
|
|
499
487
|
- examples/snippets/read-only-transactions/db/migrate/01_create_tables.rb
|
|
500
|
-
- examples/snippets/read-only-transactions/db/schema.rb
|
|
501
488
|
- examples/snippets/read-only-transactions/db/seeds.rb
|
|
502
489
|
- examples/snippets/read-only-transactions/models/album.rb
|
|
503
490
|
- examples/snippets/read-only-transactions/models/singer.rb
|
|
@@ -506,7 +493,6 @@ files:
|
|
|
506
493
|
- examples/snippets/read-write-transactions/application.rb
|
|
507
494
|
- examples/snippets/read-write-transactions/config/database.yml
|
|
508
495
|
- examples/snippets/read-write-transactions/db/migrate/01_create_tables.rb
|
|
509
|
-
- examples/snippets/read-write-transactions/db/schema.rb
|
|
510
496
|
- examples/snippets/read-write-transactions/db/seeds.rb
|
|
511
497
|
- examples/snippets/read-write-transactions/models/album.rb
|
|
512
498
|
- examples/snippets/read-write-transactions/models/singer.rb
|
|
@@ -515,7 +501,6 @@ files:
|
|
|
515
501
|
- examples/snippets/stale-reads/application.rb
|
|
516
502
|
- examples/snippets/stale-reads/config/database.yml
|
|
517
503
|
- examples/snippets/stale-reads/db/migrate/01_create_tables.rb
|
|
518
|
-
- examples/snippets/stale-reads/db/schema.rb
|
|
519
504
|
- examples/snippets/stale-reads/db/seeds.rb
|
|
520
505
|
- examples/snippets/stale-reads/models/album.rb
|
|
521
506
|
- examples/snippets/stale-reads/models/singer.rb
|
|
@@ -524,7 +509,6 @@ files:
|
|
|
524
509
|
- examples/snippets/tags/application.rb
|
|
525
510
|
- examples/snippets/tags/config/database.yml
|
|
526
511
|
- examples/snippets/tags/db/migrate/01_create_tables.rb
|
|
527
|
-
- examples/snippets/tags/db/schema.rb
|
|
528
512
|
- examples/snippets/tags/db/seeds.rb
|
|
529
513
|
- examples/snippets/tags/models/album.rb
|
|
530
514
|
- examples/snippets/tags/models/singer.rb
|
|
@@ -533,7 +517,6 @@ files:
|
|
|
533
517
|
- examples/snippets/timestamp-data-type/application.rb
|
|
534
518
|
- examples/snippets/timestamp-data-type/config/database.yml
|
|
535
519
|
- examples/snippets/timestamp-data-type/db/migrate/01_create_tables.rb
|
|
536
|
-
- examples/snippets/timestamp-data-type/db/schema.rb
|
|
537
520
|
- examples/snippets/timestamp-data-type/db/seeds.rb
|
|
538
521
|
- examples/snippets/timestamp-data-type/models/meeting.rb
|
|
539
522
|
- examples/solidus/README.md
|
|
@@ -574,7 +557,6 @@ homepage: https://github.com/googleapis/ruby-spanner-activerecord
|
|
|
574
557
|
licenses:
|
|
575
558
|
- MIT
|
|
576
559
|
metadata: {}
|
|
577
|
-
post_install_message:
|
|
578
560
|
rdoc_options: []
|
|
579
561
|
require_paths:
|
|
580
562
|
- lib
|
|
@@ -582,15 +564,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
582
564
|
requirements:
|
|
583
565
|
- - ">="
|
|
584
566
|
- !ruby/object:Gem::Version
|
|
585
|
-
version: '
|
|
567
|
+
version: '3.1'
|
|
586
568
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
587
569
|
requirements:
|
|
588
570
|
- - ">="
|
|
589
571
|
- !ruby/object:Gem::Version
|
|
590
572
|
version: '0'
|
|
591
573
|
requirements: []
|
|
592
|
-
rubygems_version: 3.
|
|
593
|
-
signing_key:
|
|
574
|
+
rubygems_version: 3.6.2
|
|
594
575
|
specification_version: 4
|
|
595
576
|
summary: Rails ActiveRecord connector for Google Spanner Database
|
|
596
577
|
test_files: []
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
-
# migrations use external dependencies or application code.
|
|
10
|
-
#
|
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
-
|
|
13
|
-
ActiveRecord::Schema.define(version: 1) do
|
|
14
|
-
connection.start_batch_ddl
|
|
15
|
-
|
|
16
|
-
create_table "entity_with_array_types", id: { limit: 8 }, force: :cascade do |t|
|
|
17
|
-
t.string "col_array_string"
|
|
18
|
-
t.integer "col_array_int64", limit: 8
|
|
19
|
-
t.float "col_array_float64"
|
|
20
|
-
t.decimal "col_array_numeric"
|
|
21
|
-
t.boolean "col_array_bool"
|
|
22
|
-
t.binary "col_array_bytes"
|
|
23
|
-
t.date "col_array_date"
|
|
24
|
-
t.time "col_array_timestamp"
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
connection.run_batch
|
|
28
|
-
rescue
|
|
29
|
-
abort_batch
|
|
30
|
-
raise
|
|
31
|
-
end
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
-
# migrations use external dependencies or application code.
|
|
10
|
-
#
|
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
-
|
|
13
|
-
ActiveRecord::Schema[7.1].define(version: 1) do
|
|
14
|
-
connection.start_batch_ddl
|
|
15
|
-
|
|
16
|
-
create_table "albums", primary_key: ["singerid", "albumid"], force: :cascade do |t|
|
|
17
|
-
t.integer "singerid", limit: 8, null: false
|
|
18
|
-
t.integer "albumid", limit: 8, null: false
|
|
19
|
-
t.string "title"
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
create_table "singers", primary_key: "singerid", default: -> { "GET_NEXT_SEQUENCE_VALUE(SEQUENCE singer_sequence)" }, force: :cascade do |t|
|
|
23
|
-
t.string "first_name"
|
|
24
|
-
t.string "last_name"
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
connection.run_batch
|
|
28
|
-
rescue
|
|
29
|
-
abort_batch
|
|
30
|
-
raise
|
|
31
|
-
end
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
-
# migrations use external dependencies or application code.
|
|
10
|
-
#
|
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
-
|
|
13
|
-
ActiveRecord::Schema.define(version: 1) do
|
|
14
|
-
connection.start_batch_ddl
|
|
15
|
-
|
|
16
|
-
create_table "albums", id: { limit: 8 }, force: :cascade do |t|
|
|
17
|
-
t.string "title"
|
|
18
|
-
t.integer "singer_id", limit: 8
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
create_table "singers", id: { limit: 8 }, force: :cascade do |t|
|
|
22
|
-
t.string "first_name"
|
|
23
|
-
t.string "last_name"
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
add_foreign_key "albums", "singers"
|
|
27
|
-
connection.run_batch
|
|
28
|
-
rescue
|
|
29
|
-
abort_batch
|
|
30
|
-
raise
|
|
31
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
-
# migrations use external dependencies or application code.
|
|
10
|
-
#
|
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
-
|
|
13
|
-
ActiveRecord::Schema.define(version: 1) do
|
|
14
|
-
connection.start_batch_ddl
|
|
15
|
-
|
|
16
|
-
create_table "albums", id: { limit: 8 }, force: :cascade do |t|
|
|
17
|
-
t.string "title"
|
|
18
|
-
t.decimal "marketing_budget"
|
|
19
|
-
t.integer "singer_id", limit: 8
|
|
20
|
-
t.time "last_updated", allow_commit_timestamp: true
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
create_table "singers", id: { limit: 8 }, force: :cascade do |t|
|
|
24
|
-
t.string "first_name"
|
|
25
|
-
t.string "last_name"
|
|
26
|
-
t.time "last_updated", allow_commit_timestamp: true
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
add_foreign_key "albums", "singers"
|
|
30
|
-
connection.run_batch
|
|
31
|
-
rescue
|
|
32
|
-
abort_batch
|
|
33
|
-
raise
|
|
34
|
-
end
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
-
# migrations use external dependencies or application code.
|
|
10
|
-
#
|
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
-
|
|
13
|
-
ActiveRecord::Schema.define(version: 1) do
|
|
14
|
-
connection.start_batch_ddl
|
|
15
|
-
|
|
16
|
-
create_table "albums", id: { limit: 8 }, force: :cascade do |t|
|
|
17
|
-
t.string "title"
|
|
18
|
-
t.integer "singer_id", limit: 8
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
create_table "singers", id: { limit: 8 }, force: :cascade do |t|
|
|
22
|
-
t.string "first_name"
|
|
23
|
-
t.string "last_name"
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
add_foreign_key "albums", "singers"
|
|
27
|
-
connection.run_batch
|
|
28
|
-
rescue
|
|
29
|
-
abort_batch
|
|
30
|
-
raise
|
|
31
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
-
# migrations use external dependencies or application code.
|
|
10
|
-
#
|
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
-
|
|
13
|
-
ActiveRecord::Schema.define(version: 1) do
|
|
14
|
-
connection.start_batch_ddl
|
|
15
|
-
|
|
16
|
-
create_table "singers", id: { limit: 8 }, force: :cascade do |t|
|
|
17
|
-
t.string "first_name"
|
|
18
|
-
t.string "last_name"
|
|
19
|
-
t.date "birth_date"
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
connection.run_batch
|
|
23
|
-
rescue
|
|
24
|
-
abort_batch
|
|
25
|
-
raise
|
|
26
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
-
# migrations use external dependencies or application code.
|
|
10
|
-
#
|
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
-
|
|
13
|
-
ActiveRecord::Schema.define(version: 1) do
|
|
14
|
-
connection.start_batch_ddl
|
|
15
|
-
|
|
16
|
-
create_table "singers", id: { limit: 8 }, force: :cascade do |t|
|
|
17
|
-
t.string "first_name", limit: 100
|
|
18
|
-
t.string "last_name", limit: 200, null: false
|
|
19
|
-
t.virtual "full_name", type: :string, limit: 300, null: false, as: "COALESCE(first_name || ' ', '') || last_name", stored: true
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
connection.run_batch
|
|
23
|
-
rescue
|
|
24
|
-
abort_batch
|
|
25
|
-
raise
|
|
26
|
-
end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
-
# migrations use external dependencies or application code.
|
|
10
|
-
#
|
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
-
|
|
13
|
-
ActiveRecord::Schema.define(version: 1) do
|
|
14
|
-
connection.start_batch_ddl
|
|
15
|
-
|
|
16
|
-
create_table "albums", id: { limit: 8 }, force: :cascade do |t|
|
|
17
|
-
t.string "title"
|
|
18
|
-
t.integer "singer_id", limit: 8
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
create_table "singers", id: { limit: 8 }, force: :cascade do |t|
|
|
22
|
-
t.string "first_name", limit: 100
|
|
23
|
-
t.string "last_name", limit: 200, null: false
|
|
24
|
-
t.virtual "full_name", type: :string, limit: 300, null: false, as: "COALESCE(first_name || ' ', '') || last_name", stored: true
|
|
25
|
-
t.index ["full_name"], name: "index_singers_on_full_name", order: { full_name: :asc }
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
add_foreign_key "albums", "singers"
|
|
29
|
-
connection.run_batch
|
|
30
|
-
rescue
|
|
31
|
-
abort_batch
|
|
32
|
-
raise
|
|
33
|
-
end
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
-
# migrations use external dependencies or application code.
|
|
10
|
-
#
|
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
-
|
|
13
|
-
ActiveRecord::Schema[7.1].define(version: 1) do
|
|
14
|
-
connection.start_batch_ddl
|
|
15
|
-
|
|
16
|
-
create_table "albums", primary_key: ["singerid", "albumid"], force: :cascade do |t|
|
|
17
|
-
t.integer "singerid", limit: 8
|
|
18
|
-
t.integer "albumid", limit: 8
|
|
19
|
-
t.string "title"
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
create_table "singers", primary_key: "singerid", force: :cascade do |t|
|
|
23
|
-
t.string "first_name"
|
|
24
|
-
t.string "last_name"
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
create_table "tracks", primary_key: ["singerid", "albumid", "trackid"], force: :cascade do |t|
|
|
28
|
-
t.integer "singerid", limit: 8
|
|
29
|
-
t.integer "albumid", limit: 8
|
|
30
|
-
t.integer "trackid", limit: 8
|
|
31
|
-
t.string "title"
|
|
32
|
-
t.decimal "duration"
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
connection.run_batch
|
|
36
|
-
rescue
|
|
37
|
-
abort_batch
|
|
38
|
-
raise
|
|
39
|
-
end
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
-
# migrations use external dependencies or application code.
|
|
10
|
-
#
|
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
-
|
|
13
|
-
ActiveRecord::Schema.define(version: 1) do
|
|
14
|
-
connection.start_batch_ddl
|
|
15
|
-
|
|
16
|
-
create_table "albums", primary_key: "albumid", force: :cascade do |t|
|
|
17
|
-
t.integer "singerid", limit: 8, null: false
|
|
18
|
-
t.string "title"
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
create_table "singers", primary_key: "singerid", force: :cascade do |t|
|
|
22
|
-
t.string "first_name"
|
|
23
|
-
t.string "last_name"
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
create_table "tracks", primary_key: "trackid", force: :cascade do |t|
|
|
27
|
-
t.integer "singerid", limit: 8, null: false
|
|
28
|
-
t.integer "albumid", limit: 8, null: false
|
|
29
|
-
t.string "title"
|
|
30
|
-
t.decimal "duration"
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
connection.run_batch
|
|
34
|
-
rescue
|
|
35
|
-
abort_batch
|
|
36
|
-
raise
|
|
37
|
-
end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
-
# migrations use external dependencies or application code.
|
|
10
|
-
#
|
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
-
|
|
13
|
-
ActiveRecord::Schema.define(version: 1) do
|
|
14
|
-
connection.start_batch_ddl
|
|
15
|
-
|
|
16
|
-
create_table "albums", id: { limit: 8 }, force: :cascade do |t|
|
|
17
|
-
t.string "title"
|
|
18
|
-
t.integer "singers_id", limit: 8
|
|
19
|
-
t.index ["singers_id"], name: "index_albums_on_singers_id", order: { singers_id: :asc }
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
create_table "singers", id: { limit: 8 }, force: :cascade do |t|
|
|
23
|
-
t.string "first_name"
|
|
24
|
-
t.string "last_name"
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
create_table "tracks", id: { limit: 8 }, force: :cascade do |t|
|
|
28
|
-
t.string "title"
|
|
29
|
-
t.decimal "duration"
|
|
30
|
-
t.integer "albums_id", limit: 8
|
|
31
|
-
t.index ["albums_id"], name: "index_tracks_on_albums_id", order: { albums_id: :asc }
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
connection.run_batch
|
|
35
|
-
rescue
|
|
36
|
-
abort_batch
|
|
37
|
-
raise
|
|
38
|
-
end
|