activerecord-cockroachdb-adapter 8.0.3 → 8.1.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.
Files changed (239) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/CONTRIBUTING.md +10 -17
  4. data/Gemfile +2 -1
  5. data/Rakefile +0 -19
  6. data/lib/active_record/connection_adapters/cockroachdb/column.rb +66 -24
  7. data/lib/active_record/connection_adapters/cockroachdb/database_statements.rb +13 -3
  8. data/lib/active_record/connection_adapters/cockroachdb/database_tasks.rb +1 -1
  9. data/lib/active_record/connection_adapters/cockroachdb/oid/spatial.rb +34 -19
  10. data/lib/active_record/connection_adapters/cockroachdb/quoting.rb +19 -3
  11. data/lib/active_record/connection_adapters/cockroachdb/referential_integrity.rb +87 -55
  12. data/lib/active_record/connection_adapters/cockroachdb/schema_statements.rb +181 -102
  13. data/lib/active_record/connection_adapters/cockroachdb_adapter.rb +39 -21
  14. data/lib/version.rb +1 -1
  15. data/test/cases/adapter_test.rb +98 -0
  16. data/test/cases/adapters/cockroachdb/referential_integrity_test.rb +51 -0
  17. data/test/cases/adapters/postgresql/active_schema_test.rb +71 -0
  18. data/test/cases/adapters/postgresql/change_schema_test.rb +75 -0
  19. data/test/cases/adapters/postgresql/connection_test.rb +46 -0
  20. data/test/cases/adapters/postgresql/ddl_test.rb +326 -0
  21. data/test/cases/adapters/postgresql/interval_test.rb +131 -0
  22. data/test/cases/adapters/postgresql/nested_class_test.rb +22 -0
  23. data/test/cases/adapters/postgresql/numeric_test.rb +28 -0
  24. data/test/cases/adapters/postgresql/postgis_test.rb +185 -0
  25. data/test/cases/adapters/postgresql/postgresql_adapter_test.rb +115 -0
  26. data/test/cases/adapters/postgresql/quoting_test.rb +30 -0
  27. data/test/cases/adapters/postgresql/schema_statements_test.rb +29 -0
  28. data/test/cases/adapters/postgresql/serial_test.rb +199 -0
  29. data/test/cases/adapters/postgresql/spatial_queries_test.rb +118 -0
  30. data/test/cases/adapters/postgresql/spatial_setup_test.rb +18 -0
  31. data/test/cases/adapters/postgresql/spatial_type_test.rb +41 -0
  32. data/test/cases/adapters/postgresql/timestamp_test.rb +58 -0
  33. data/test/cases/adapters/postgresql/virtual_column_test.rb +39 -0
  34. data/test/cases/associations/eager_load_nested_include_test.rb +111 -0
  35. data/test/cases/associations/left_outer_join_association_test.rb +30 -0
  36. data/test/cases/associations_test.rb +108 -0
  37. data/test/cases/base_test.rb +31 -0
  38. data/test/cases/comment_test.rb +75 -0
  39. data/test/cases/connection_adapters/type_test.rb +28 -0
  40. data/test/cases/database_configurations/resolver_test.rb +24 -0
  41. data/test/cases/defaults_test.rb +45 -0
  42. data/test/cases/dirty_test.rb +24 -0
  43. data/test/cases/fixtures_test.rb +541 -0
  44. data/test/cases/helper_cockroachdb.rb +232 -0
  45. data/test/cases/inheritance_test.rb +42 -0
  46. data/test/cases/invertible_migration_test.rb +73 -0
  47. data/test/cases/marshal_serialization_test.rb +45 -0
  48. data/test/cases/migration/change_schema_test.rb +140 -0
  49. data/test/cases/migration/check_constraint_test.rb +125 -0
  50. data/test/cases/migration/columns_test.rb +50 -0
  51. data/test/cases/migration/create_join_table_test.rb +66 -0
  52. data/test/cases/migration/foreign_key_test.rb +390 -0
  53. data/test/cases/migration/hidden_column_test.rb +70 -0
  54. data/test/cases/migration/references_foreign_key_test.rb +124 -0
  55. data/test/cases/migration_test.rb +120 -0
  56. data/test/cases/persistence_test.rb +33 -0
  57. data/test/cases/primary_keys_test.rb +134 -0
  58. data/test/cases/relation/aost_test.rb +57 -0
  59. data/test/cases/relation/or_test.rb +26 -0
  60. data/test/cases/relation/table_hints_test.rb +124 -0
  61. data/test/cases/relation_test.rb +26 -0
  62. data/test/cases/relations_test.rb +29 -0
  63. data/test/cases/schema_dumper_test.rb +221 -0
  64. data/test/cases/show_create_test.rb +14 -0
  65. data/test/cases/strict_loading_test.rb +34 -0
  66. data/test/cases/tasks/cockroachdb_rake_test.rb +113 -0
  67. data/test/cases/test_fixtures_test.rb +57 -0
  68. data/test/cases/transactions_test.rb +51 -0
  69. data/test/cases/unsafe_raw_sql_test.rb +22 -0
  70. data/test/config.yml +23 -0
  71. data/test/excludes/ActiveRecord/AdapterTest.rb +3 -0
  72. data/test/excludes/ActiveRecord/AdapterTestWithoutTransaction.rb +25 -0
  73. data/test/excludes/ActiveRecord/ConnectionAdapters/PoolConfig/ResolverTest.rb +1 -0
  74. data/test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter/BindParameterTest.rb +15 -0
  75. data/test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter/QuotingTest.rb +22 -0
  76. data/test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapterPreventWritesLegacyTest.rb +1 -0
  77. data/test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapterPreventWritesTest.rb +1 -0
  78. data/test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapterTest.rb +40 -0
  79. data/test/excludes/ActiveRecord/ConnectionAdapters/RegistrationIsolatedTest.rb +14 -0
  80. data/test/excludes/ActiveRecord/Encryption/EncryptionPerformanceTest.rb +1 -0
  81. data/test/excludes/ActiveRecord/Encryption/EnvelopeEncryptionPerformanceTest.rb +1 -0
  82. data/test/excludes/ActiveRecord/Encryption/ExtendedDeterministicQueriesPerformanceTest.rb +1 -0
  83. data/test/excludes/ActiveRecord/Encryption/StoragePerformanceTest.rb +2 -0
  84. data/test/excludes/ActiveRecord/InstrumentationTest.rb +16 -0
  85. data/test/excludes/ActiveRecord/InvertibleMigrationTest.rb +2 -0
  86. data/test/excludes/ActiveRecord/Migration/ChangeSchemaTest.rb +7 -0
  87. data/test/excludes/ActiveRecord/Migration/CheckConstraintTest.rb +6 -0
  88. data/test/excludes/ActiveRecord/Migration/ColumnsTest.rb +4 -0
  89. data/test/excludes/ActiveRecord/Migration/CompatibilityTest.rb +50 -0
  90. data/test/excludes/ActiveRecord/Migration/CompositeForeignKeyTest.rb +2 -0
  91. data/test/excludes/ActiveRecord/Migration/CreateJoinTableTest.rb +2 -0
  92. data/test/excludes/ActiveRecord/Migration/ForeignKeyInCreateTest.rb +1 -0
  93. data/test/excludes/ActiveRecord/Migration/ForeignKeyTest.rb +35 -0
  94. data/test/excludes/ActiveRecord/Migration/InvalidOptionsTest.rb +14 -0
  95. data/test/excludes/ActiveRecord/Migration/PGChangeSchemaTest.rb +8 -0
  96. data/test/excludes/ActiveRecord/Migration/ReferencesForeignKeyTest.rb +7 -0
  97. data/test/excludes/ActiveRecord/Migration/ReferencesIndexTest.rb +7 -0
  98. data/test/excludes/ActiveRecord/Migration/ReferencesStatementsTest.rb +3 -0
  99. data/test/excludes/ActiveRecord/MysqlDBCreateWithInvalidPermissionsTest.rb +1 -0
  100. data/test/excludes/ActiveRecord/OrTest.rb +1 -0
  101. data/test/excludes/ActiveRecord/PostgreSQLStructureDumpTest.rb +10 -0
  102. data/test/excludes/ActiveRecord/PostgresqlConnectionTest.rb +12 -0
  103. data/test/excludes/ActiveRecord/PostgresqlTransactionNestedTest.rb +14 -0
  104. data/test/excludes/ActiveRecord/PostgresqlTransactionTest.rb +4 -0
  105. data/test/excludes/ActiveRecord/RelationTest.rb +2 -0
  106. data/test/excludes/ActiveRecord/TooManyOrTest.rb +1 -0
  107. data/test/excludes/ActiveSupportSubclassWithFixturesTest.rb +1 -0
  108. data/test/excludes/AssociationDeprecationTest/NotifyModeTest.rb +2 -0
  109. data/test/excludes/AssociationDeprecationTest/RaiseBacktraceModeTest.rb +2 -0
  110. data/test/excludes/AssociationDeprecationTest/RaiseModeTest.rb +2 -0
  111. data/test/excludes/AssociationDeprecationTest/WarnBacktraceModeTest.rb +2 -0
  112. data/test/excludes/AssociationDeprecationTest/WarnModeTest.rb +2 -0
  113. data/test/excludes/AssociationDeprecationTest/fix_backtrace_cleaner.rb +10 -0
  114. data/test/excludes/BasicsTest.rb +1 -0
  115. data/test/excludes/BulkAlterTableMigrationsTest.rb +7 -0
  116. data/test/excludes/CalculationsTest.rb +4 -0
  117. data/test/excludes/CommentTest.rb +2 -0
  118. data/test/excludes/CoreTest.rb +1 -0
  119. data/test/excludes/CreateOrFindByWithinTransactions.rb +3 -0
  120. data/test/excludes/DefaultsUsingMultipleSchemasAndDomainTest.rb +7 -0
  121. data/test/excludes/DirtyTest.rb +3 -0
  122. data/test/excludes/EachTest.rb +8 -0
  123. data/test/excludes/EagerLoadPolyAssocsTest.rb +1 -0
  124. data/test/excludes/ExplicitlyNamedIndexMigrationTest.rb +1 -0
  125. data/test/excludes/FixturesResetPkSequenceTest.rb +3 -0
  126. data/test/excludes/FixturesTest.rb +21 -0
  127. data/test/excludes/FixturesWithForeignKeyViolationsTest.rb +2 -0
  128. data/test/excludes/ForeignTableTest.rb +10 -0
  129. data/test/excludes/InheritanceComputeTypeTest.rb +1 -0
  130. data/test/excludes/LeftOuterJoinAssociationTest.rb +2 -0
  131. data/test/excludes/LegacyPrimaryKeyTest/V4_2.rb +6 -0
  132. data/test/excludes/LegacyPrimaryKeyTest/V5_0.rb +6 -0
  133. data/test/excludes/MarshalSerializationTest.rb +4 -0
  134. data/test/excludes/MaterializedViewTest.rb +13 -0
  135. data/test/excludes/MigrationTest.rb +2 -0
  136. data/test/excludes/MultiDbMigratorTest.rb +2 -0
  137. data/test/excludes/NestedRelationScopingTest.rb +1 -0
  138. data/test/excludes/OrTest.rb +1 -0
  139. data/test/excludes/PersistenceTest.rb +3 -0
  140. data/test/excludes/PessimisticLockingTest.rb +1 -0
  141. data/test/excludes/PostgreSQLExplainTest.rb +7 -0
  142. data/test/excludes/PostgreSQLGeometricLineTest.rb +3 -0
  143. data/test/excludes/PostgreSQLGeometricTypesTest.rb +7 -0
  144. data/test/excludes/PostgreSQLPartitionsTest.rb +1 -0
  145. data/test/excludes/PostgreSQLReferentialIntegrityTest.rb +14 -0
  146. data/test/excludes/PostgresqlArrayTest.rb +21 -0
  147. data/test/excludes/PostgresqlBigSerialTest.rb +7 -0
  148. data/test/excludes/PostgresqlBitStringTest.rb +2 -0
  149. data/test/excludes/PostgresqlByteaTest.rb +1 -0
  150. data/test/excludes/PostgresqlCitextTest.rb +7 -0
  151. data/test/excludes/PostgresqlCollationTest.rb +5 -0
  152. data/test/excludes/PostgresqlCompositeTest.rb +2 -0
  153. data/test/excludes/PostgresqlCompositeWithCustomOIDTest.rb +2 -0
  154. data/test/excludes/PostgresqlDataTypeTest.rb +9 -0
  155. data/test/excludes/PostgresqlDefaultExpressionTest.rb +1 -0
  156. data/test/excludes/PostgresqlDeferredConstraintsTest.rb +3 -0
  157. data/test/excludes/PostgresqlDomainTest.rb +2 -0
  158. data/test/excludes/PostgresqlExtensionMigrationTest.rb +5 -0
  159. data/test/excludes/PostgresqlFullTextTest.rb +3 -0
  160. data/test/excludes/PostgresqlGeometricTest.rb +4 -0
  161. data/test/excludes/PostgresqlHstoreTest.rb +45 -0
  162. data/test/excludes/PostgresqlInfinityTest.rb +5 -0
  163. data/test/excludes/PostgresqlIntervalTest.rb +1 -0
  164. data/test/excludes/PostgresqlJSONBTest.rb +27 -0
  165. data/test/excludes/PostgresqlJSONTest.rb +27 -0
  166. data/test/excludes/PostgresqlLtreeTest.rb +4 -0
  167. data/test/excludes/PostgresqlMoneyTest.rb +12 -0
  168. data/test/excludes/PostgresqlNetworkTest.rb +69 -0
  169. data/test/excludes/PostgresqlNumberTest.rb +1 -0
  170. data/test/excludes/PostgresqlPointTest.rb +15 -0
  171. data/test/excludes/PostgresqlRangeTest.rb +3 -0
  172. data/test/excludes/PostgresqlRenameTableTest.rb +2 -0
  173. data/test/excludes/PostgresqlSerialTest.rb +7 -0
  174. data/test/excludes/PostgresqlTimestampFixtureTest.rb +2 -0
  175. data/test/excludes/PostgresqlTimestampMigrationTest.rb +3 -0
  176. data/test/excludes/PostgresqlTypeLookupTest.rb +2 -0
  177. data/test/excludes/PostgresqlUUIDGenerationTest.rb +7 -0
  178. data/test/excludes/PostgresqlUUIDTest.rb +1 -0
  179. data/test/excludes/PostgresqlVirtualColumnTest.rb +17 -0
  180. data/test/excludes/PostgresqlXMLTest.rb +5 -0
  181. data/test/excludes/PrimaryKeyIntegerNilDefaultTest.rb +1 -0
  182. data/test/excludes/PrimaryKeyIntegerTest.rb +3 -0
  183. data/test/excludes/PrimaryKeysTest.rb +2 -0
  184. data/test/excludes/RelationMergingTest.rb +15 -0
  185. data/test/excludes/RelationTest.rb +3 -0
  186. data/test/excludes/ReservedWordsMigrationTest.rb +1 -0
  187. data/test/excludes/SameNameDifferentDatabaseFixturesTest.rb +1 -0
  188. data/test/excludes/SanitizeTest.rb +13 -0
  189. data/test/excludes/SchemaAuthorizationTest.rb +8 -0
  190. data/test/excludes/SchemaCreateTableOptionsTest.rb +2 -0
  191. data/test/excludes/SchemaDumperDefaultsTest.rb +1 -0
  192. data/test/excludes/SchemaDumperTest.rb +11 -0
  193. data/test/excludes/SchemaForeignKeyTest.rb +1 -0
  194. data/test/excludes/SchemaIndexNullsOrderTest.rb +2 -0
  195. data/test/excludes/SchemaIndexOpclassTest.rb +3 -0
  196. data/test/excludes/SchemaTest.rb +49 -0
  197. data/test/excludes/SequenceNameDetectionTestCases/CollidedSequenceNameTest.rb +1 -0
  198. data/test/excludes/SequenceNameDetectionTestCases/LongerSequenceNameDetectionTest.rb +1 -0
  199. data/test/excludes/StrictLoadingFixturesTest.rb +1 -0
  200. data/test/excludes/TestFixturesTest.rb +1 -0
  201. data/test/excludes/TransactionInstrumentationTest.rb +1 -0
  202. data/test/excludes/TransactionIsolationTest.rb +1 -0
  203. data/test/excludes/TypeTest.rb +1 -0
  204. data/test/excludes/UniquenessValidationTest.rb +2 -0
  205. data/test/excludes/UnloggedTablesTest.rb +3 -0
  206. data/test/excludes/UnsafeRawSqlTest.rb +2 -0
  207. data/test/excludes/UpdateableViewTest.rb +5 -0
  208. data/test/excludes/WithAnnotationsTest.rb +6 -0
  209. data/test/models/building.rb +4 -0
  210. data/test/models/spatial_model.rb +5 -0
  211. data/test/schema/cockroachdb_specific_schema.rb +218 -0
  212. data/test/support/copy_cat.rb +83 -0
  213. data/test/support/exclude_from_transactional_tests.rb +33 -0
  214. data/test/support/paths_cockroachdb.rb +46 -0
  215. data/test/support/rake_helpers.rb +37 -0
  216. data/test/support/sql_logger.rb +55 -0
  217. data/test/support/template_creator.rb +114 -0
  218. metadata +422 -34
  219. data/.editorconfig +0 -7
  220. data/.github/issue_template.md +0 -46
  221. data/.github/reproduction_scripts/migrations.rb +0 -60
  222. data/.github/reproduction_scripts/models_and_database.rb +0 -49
  223. data/.github/workflows/ci.yml +0 -96
  224. data/.github/workflows/docker.yml +0 -57
  225. data/.gitignore +0 -18
  226. data/.gitmodules +0 -0
  227. data/activerecord-cockroachdb-adapter.gemspec +0 -38
  228. data/bin/console +0 -36
  229. data/bin/console_schemas/default.rb +0 -11
  230. data/bin/console_schemas/schemas.rb +0 -23
  231. data/bin/setup +0 -8
  232. data/bin/start-cockroachdb +0 -33
  233. data/build/Dockerfile +0 -14
  234. data/build/config.teamcity.yml +0 -31
  235. data/build/local-test.sh +0 -32
  236. data/build/teamcity-test.sh +0 -76
  237. data/docker.sh +0 -35
  238. data/lib/active_record/connection_adapters/cockroachdb/spatial_column_info.rb +0 -60
  239. data/setup.sql +0 -18
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-cockroachdb-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.3
4
+ version: 8.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cockroach Labs
8
- autorequire:
9
- bindir: exe
8
+ autorequire:
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-19 00:00:00.000000000 Z
11
+ date: 2025-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 8.0.0
19
+ version: 8.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 8.0.0
26
+ version: 8.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pg
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 8.0.0
47
+ version: 8.1.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 8.0.0
54
+ version: 8.1.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: benchmark-ips
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,33 +72,17 @@ email:
72
72
  - cockroach-db@googlegroups.com
73
73
  executables: []
74
74
  extensions: []
75
- extra_rdoc_files: []
75
+ extra_rdoc_files:
76
+ - CHANGELOG.md
77
+ - README.md
78
+ - CONTRIBUTING.md
76
79
  files:
77
- - ".editorconfig"
78
- - ".github/issue_template.md"
79
- - ".github/reproduction_scripts/migrations.rb"
80
- - ".github/reproduction_scripts/models_and_database.rb"
81
- - ".github/workflows/ci.yml"
82
- - ".github/workflows/docker.yml"
83
- - ".gitignore"
84
- - ".gitmodules"
85
80
  - CHANGELOG.md
86
81
  - CONTRIBUTING.md
87
82
  - Gemfile
88
83
  - LICENSE
89
84
  - README.md
90
85
  - Rakefile
91
- - activerecord-cockroachdb-adapter.gemspec
92
- - bin/console
93
- - bin/console_schemas/default.rb
94
- - bin/console_schemas/schemas.rb
95
- - bin/setup
96
- - bin/start-cockroachdb
97
- - build/Dockerfile
98
- - build/config.teamcity.yml
99
- - build/local-test.sh
100
- - build/teamcity-test.sh
101
- - docker.sh
102
86
  - lib/active_record/connection_adapters/cockroachdb/arel_tosql.rb
103
87
  - lib/active_record/connection_adapters/cockroachdb/attribute_methods.rb
104
88
  - lib/active_record/connection_adapters/cockroachdb/column.rb
@@ -114,7 +98,6 @@ files:
114
98
  - lib/active_record/connection_adapters/cockroachdb/schema_dumper.rb
115
99
  - lib/active_record/connection_adapters/cockroachdb/schema_statements.rb
116
100
  - lib/active_record/connection_adapters/cockroachdb/setup.rb
117
- - lib/active_record/connection_adapters/cockroachdb/spatial_column_info.rb
118
101
  - lib/active_record/connection_adapters/cockroachdb/table_definition.rb
119
102
  - lib/active_record/connection_adapters/cockroachdb/transaction_manager.rb
120
103
  - lib/active_record/connection_adapters/cockroachdb/type.rb
@@ -124,13 +107,215 @@ files:
124
107
  - lib/activerecord-cockroachdb-adapter.rb
125
108
  - lib/arel/nodes/join_source_ext.rb
126
109
  - lib/version.rb
127
- - setup.sql
110
+ - test/cases/adapter_test.rb
111
+ - test/cases/adapters/cockroachdb/referential_integrity_test.rb
112
+ - test/cases/adapters/postgresql/active_schema_test.rb
113
+ - test/cases/adapters/postgresql/change_schema_test.rb
114
+ - test/cases/adapters/postgresql/connection_test.rb
115
+ - test/cases/adapters/postgresql/ddl_test.rb
116
+ - test/cases/adapters/postgresql/interval_test.rb
117
+ - test/cases/adapters/postgresql/nested_class_test.rb
118
+ - test/cases/adapters/postgresql/numeric_test.rb
119
+ - test/cases/adapters/postgresql/postgis_test.rb
120
+ - test/cases/adapters/postgresql/postgresql_adapter_test.rb
121
+ - test/cases/adapters/postgresql/quoting_test.rb
122
+ - test/cases/adapters/postgresql/schema_statements_test.rb
123
+ - test/cases/adapters/postgresql/serial_test.rb
124
+ - test/cases/adapters/postgresql/spatial_queries_test.rb
125
+ - test/cases/adapters/postgresql/spatial_setup_test.rb
126
+ - test/cases/adapters/postgresql/spatial_type_test.rb
127
+ - test/cases/adapters/postgresql/timestamp_test.rb
128
+ - test/cases/adapters/postgresql/virtual_column_test.rb
129
+ - test/cases/associations/eager_load_nested_include_test.rb
130
+ - test/cases/associations/left_outer_join_association_test.rb
131
+ - test/cases/associations_test.rb
132
+ - test/cases/base_test.rb
133
+ - test/cases/comment_test.rb
134
+ - test/cases/connection_adapters/type_test.rb
135
+ - test/cases/database_configurations/resolver_test.rb
136
+ - test/cases/defaults_test.rb
137
+ - test/cases/dirty_test.rb
138
+ - test/cases/fixtures_test.rb
139
+ - test/cases/helper_cockroachdb.rb
140
+ - test/cases/inheritance_test.rb
141
+ - test/cases/invertible_migration_test.rb
142
+ - test/cases/marshal_serialization_test.rb
143
+ - test/cases/migration/change_schema_test.rb
144
+ - test/cases/migration/check_constraint_test.rb
145
+ - test/cases/migration/columns_test.rb
146
+ - test/cases/migration/create_join_table_test.rb
147
+ - test/cases/migration/foreign_key_test.rb
148
+ - test/cases/migration/hidden_column_test.rb
149
+ - test/cases/migration/references_foreign_key_test.rb
150
+ - test/cases/migration_test.rb
151
+ - test/cases/persistence_test.rb
152
+ - test/cases/primary_keys_test.rb
153
+ - test/cases/relation/aost_test.rb
154
+ - test/cases/relation/or_test.rb
155
+ - test/cases/relation/table_hints_test.rb
156
+ - test/cases/relation_test.rb
157
+ - test/cases/relations_test.rb
158
+ - test/cases/schema_dumper_test.rb
159
+ - test/cases/show_create_test.rb
160
+ - test/cases/strict_loading_test.rb
161
+ - test/cases/tasks/cockroachdb_rake_test.rb
162
+ - test/cases/test_fixtures_test.rb
163
+ - test/cases/transactions_test.rb
164
+ - test/cases/unsafe_raw_sql_test.rb
165
+ - test/config.yml
166
+ - test/excludes/ActiveRecord/AdapterTest.rb
167
+ - test/excludes/ActiveRecord/AdapterTestWithoutTransaction.rb
168
+ - test/excludes/ActiveRecord/ConnectionAdapters/PoolConfig/ResolverTest.rb
169
+ - test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter/BindParameterTest.rb
170
+ - test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter/QuotingTest.rb
171
+ - test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapterPreventWritesLegacyTest.rb
172
+ - test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapterPreventWritesTest.rb
173
+ - test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapterTest.rb
174
+ - test/excludes/ActiveRecord/ConnectionAdapters/RegistrationIsolatedTest.rb
175
+ - test/excludes/ActiveRecord/Encryption/EncryptionPerformanceTest.rb
176
+ - test/excludes/ActiveRecord/Encryption/EnvelopeEncryptionPerformanceTest.rb
177
+ - test/excludes/ActiveRecord/Encryption/ExtendedDeterministicQueriesPerformanceTest.rb
178
+ - test/excludes/ActiveRecord/Encryption/StoragePerformanceTest.rb
179
+ - test/excludes/ActiveRecord/InstrumentationTest.rb
180
+ - test/excludes/ActiveRecord/InvertibleMigrationTest.rb
181
+ - test/excludes/ActiveRecord/Migration/ChangeSchemaTest.rb
182
+ - test/excludes/ActiveRecord/Migration/CheckConstraintTest.rb
183
+ - test/excludes/ActiveRecord/Migration/ColumnsTest.rb
184
+ - test/excludes/ActiveRecord/Migration/CompatibilityTest.rb
185
+ - test/excludes/ActiveRecord/Migration/CompositeForeignKeyTest.rb
186
+ - test/excludes/ActiveRecord/Migration/CreateJoinTableTest.rb
187
+ - test/excludes/ActiveRecord/Migration/ForeignKeyInCreateTest.rb
188
+ - test/excludes/ActiveRecord/Migration/ForeignKeyTest.rb
189
+ - test/excludes/ActiveRecord/Migration/InvalidOptionsTest.rb
190
+ - test/excludes/ActiveRecord/Migration/PGChangeSchemaTest.rb
191
+ - test/excludes/ActiveRecord/Migration/ReferencesForeignKeyTest.rb
192
+ - test/excludes/ActiveRecord/Migration/ReferencesIndexTest.rb
193
+ - test/excludes/ActiveRecord/Migration/ReferencesStatementsTest.rb
194
+ - test/excludes/ActiveRecord/MysqlDBCreateWithInvalidPermissionsTest.rb
195
+ - test/excludes/ActiveRecord/OrTest.rb
196
+ - test/excludes/ActiveRecord/PostgreSQLStructureDumpTest.rb
197
+ - test/excludes/ActiveRecord/PostgresqlConnectionTest.rb
198
+ - test/excludes/ActiveRecord/PostgresqlTransactionNestedTest.rb
199
+ - test/excludes/ActiveRecord/PostgresqlTransactionTest.rb
200
+ - test/excludes/ActiveRecord/RelationTest.rb
201
+ - test/excludes/ActiveRecord/TooManyOrTest.rb
202
+ - test/excludes/ActiveSupportSubclassWithFixturesTest.rb
203
+ - test/excludes/AssociationDeprecationTest/NotifyModeTest.rb
204
+ - test/excludes/AssociationDeprecationTest/RaiseBacktraceModeTest.rb
205
+ - test/excludes/AssociationDeprecationTest/RaiseModeTest.rb
206
+ - test/excludes/AssociationDeprecationTest/WarnBacktraceModeTest.rb
207
+ - test/excludes/AssociationDeprecationTest/WarnModeTest.rb
208
+ - test/excludes/AssociationDeprecationTest/fix_backtrace_cleaner.rb
209
+ - test/excludes/BasicsTest.rb
210
+ - test/excludes/BulkAlterTableMigrationsTest.rb
211
+ - test/excludes/CalculationsTest.rb
212
+ - test/excludes/CommentTest.rb
213
+ - test/excludes/CoreTest.rb
214
+ - test/excludes/CreateOrFindByWithinTransactions.rb
215
+ - test/excludes/DefaultsUsingMultipleSchemasAndDomainTest.rb
216
+ - test/excludes/DirtyTest.rb
217
+ - test/excludes/EachTest.rb
218
+ - test/excludes/EagerLoadPolyAssocsTest.rb
219
+ - test/excludes/ExplicitlyNamedIndexMigrationTest.rb
220
+ - test/excludes/FixturesResetPkSequenceTest.rb
221
+ - test/excludes/FixturesTest.rb
222
+ - test/excludes/FixturesWithForeignKeyViolationsTest.rb
223
+ - test/excludes/ForeignTableTest.rb
224
+ - test/excludes/InheritanceComputeTypeTest.rb
225
+ - test/excludes/LeftOuterJoinAssociationTest.rb
226
+ - test/excludes/LegacyPrimaryKeyTest/V4_2.rb
227
+ - test/excludes/LegacyPrimaryKeyTest/V5_0.rb
228
+ - test/excludes/MarshalSerializationTest.rb
229
+ - test/excludes/MaterializedViewTest.rb
230
+ - test/excludes/MigrationTest.rb
231
+ - test/excludes/MultiDbMigratorTest.rb
232
+ - test/excludes/NestedRelationScopingTest.rb
233
+ - test/excludes/OrTest.rb
234
+ - test/excludes/PersistenceTest.rb
235
+ - test/excludes/PessimisticLockingTest.rb
236
+ - test/excludes/PostgreSQLExplainTest.rb
237
+ - test/excludes/PostgreSQLGeometricLineTest.rb
238
+ - test/excludes/PostgreSQLGeometricTypesTest.rb
239
+ - test/excludes/PostgreSQLPartitionsTest.rb
240
+ - test/excludes/PostgreSQLReferentialIntegrityTest.rb
241
+ - test/excludes/PostgresqlArrayTest.rb
242
+ - test/excludes/PostgresqlBigSerialTest.rb
243
+ - test/excludes/PostgresqlBitStringTest.rb
244
+ - test/excludes/PostgresqlByteaTest.rb
245
+ - test/excludes/PostgresqlCitextTest.rb
246
+ - test/excludes/PostgresqlCollationTest.rb
247
+ - test/excludes/PostgresqlCompositeTest.rb
248
+ - test/excludes/PostgresqlCompositeWithCustomOIDTest.rb
249
+ - test/excludes/PostgresqlDataTypeTest.rb
250
+ - test/excludes/PostgresqlDefaultExpressionTest.rb
251
+ - test/excludes/PostgresqlDeferredConstraintsTest.rb
252
+ - test/excludes/PostgresqlDomainTest.rb
253
+ - test/excludes/PostgresqlExtensionMigrationTest.rb
254
+ - test/excludes/PostgresqlFullTextTest.rb
255
+ - test/excludes/PostgresqlGeometricTest.rb
256
+ - test/excludes/PostgresqlHstoreTest.rb
257
+ - test/excludes/PostgresqlInfinityTest.rb
258
+ - test/excludes/PostgresqlIntervalTest.rb
259
+ - test/excludes/PostgresqlJSONBTest.rb
260
+ - test/excludes/PostgresqlJSONTest.rb
261
+ - test/excludes/PostgresqlLtreeTest.rb
262
+ - test/excludes/PostgresqlMoneyTest.rb
263
+ - test/excludes/PostgresqlNetworkTest.rb
264
+ - test/excludes/PostgresqlNumberTest.rb
265
+ - test/excludes/PostgresqlPointTest.rb
266
+ - test/excludes/PostgresqlRangeTest.rb
267
+ - test/excludes/PostgresqlRenameTableTest.rb
268
+ - test/excludes/PostgresqlSerialTest.rb
269
+ - test/excludes/PostgresqlTimestampFixtureTest.rb
270
+ - test/excludes/PostgresqlTimestampMigrationTest.rb
271
+ - test/excludes/PostgresqlTypeLookupTest.rb
272
+ - test/excludes/PostgresqlUUIDGenerationTest.rb
273
+ - test/excludes/PostgresqlUUIDTest.rb
274
+ - test/excludes/PostgresqlVirtualColumnTest.rb
275
+ - test/excludes/PostgresqlXMLTest.rb
276
+ - test/excludes/PrimaryKeyIntegerNilDefaultTest.rb
277
+ - test/excludes/PrimaryKeyIntegerTest.rb
278
+ - test/excludes/PrimaryKeysTest.rb
279
+ - test/excludes/RelationMergingTest.rb
280
+ - test/excludes/RelationTest.rb
281
+ - test/excludes/ReservedWordsMigrationTest.rb
282
+ - test/excludes/SameNameDifferentDatabaseFixturesTest.rb
283
+ - test/excludes/SanitizeTest.rb
284
+ - test/excludes/SchemaAuthorizationTest.rb
285
+ - test/excludes/SchemaCreateTableOptionsTest.rb
286
+ - test/excludes/SchemaDumperDefaultsTest.rb
287
+ - test/excludes/SchemaDumperTest.rb
288
+ - test/excludes/SchemaForeignKeyTest.rb
289
+ - test/excludes/SchemaIndexNullsOrderTest.rb
290
+ - test/excludes/SchemaIndexOpclassTest.rb
291
+ - test/excludes/SchemaTest.rb
292
+ - test/excludes/SequenceNameDetectionTestCases/CollidedSequenceNameTest.rb
293
+ - test/excludes/SequenceNameDetectionTestCases/LongerSequenceNameDetectionTest.rb
294
+ - test/excludes/StrictLoadingFixturesTest.rb
295
+ - test/excludes/TestFixturesTest.rb
296
+ - test/excludes/TransactionInstrumentationTest.rb
297
+ - test/excludes/TransactionIsolationTest.rb
298
+ - test/excludes/TypeTest.rb
299
+ - test/excludes/UniquenessValidationTest.rb
300
+ - test/excludes/UnloggedTablesTest.rb
301
+ - test/excludes/UnsafeRawSqlTest.rb
302
+ - test/excludes/UpdateableViewTest.rb
303
+ - test/excludes/WithAnnotationsTest.rb
304
+ - test/models/building.rb
305
+ - test/models/spatial_model.rb
306
+ - test/schema/cockroachdb_specific_schema.rb
307
+ - test/support/copy_cat.rb
308
+ - test/support/exclude_from_transactional_tests.rb
309
+ - test/support/paths_cockroachdb.rb
310
+ - test/support/rake_helpers.rb
311
+ - test/support/sql_logger.rb
312
+ - test/support/template_creator.rb
128
313
  homepage: https://github.com/cockroachdb/activerecord-cockroachdb-adapter
129
314
  licenses:
130
315
  - Apache-2.0
131
316
  metadata:
132
317
  allowed_push_host: https://rubygems.org
133
- post_install_message:
318
+ post_install_message:
134
319
  rdoc_options: []
135
320
  require_paths:
136
321
  - lib
@@ -145,8 +330,211 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
330
  - !ruby/object:Gem::Version
146
331
  version: '0'
147
332
  requirements: []
148
- rubygems_version: 3.5.23
149
- signing_key:
333
+ rubygems_version: 3.0.3.1
334
+ signing_key:
150
335
  specification_version: 4
151
336
  summary: CockroachDB adapter for ActiveRecord.
152
- test_files: []
337
+ test_files:
338
+ - test/cases/dirty_test.rb
339
+ - test/cases/primary_keys_test.rb
340
+ - test/cases/associations/left_outer_join_association_test.rb
341
+ - test/cases/associations/eager_load_nested_include_test.rb
342
+ - test/cases/tasks/cockroachdb_rake_test.rb
343
+ - test/cases/relation/aost_test.rb
344
+ - test/cases/relation/or_test.rb
345
+ - test/cases/relation/table_hints_test.rb
346
+ - test/cases/show_create_test.rb
347
+ - test/cases/invertible_migration_test.rb
348
+ - test/cases/associations_test.rb
349
+ - test/cases/inheritance_test.rb
350
+ - test/cases/strict_loading_test.rb
351
+ - test/cases/migration_test.rb
352
+ - test/cases/marshal_serialization_test.rb
353
+ - test/cases/schema_dumper_test.rb
354
+ - test/cases/adapters/postgresql/ddl_test.rb
355
+ - test/cases/adapters/postgresql/interval_test.rb
356
+ - test/cases/adapters/postgresql/schema_statements_test.rb
357
+ - test/cases/adapters/postgresql/spatial_queries_test.rb
358
+ - test/cases/adapters/postgresql/postgresql_adapter_test.rb
359
+ - test/cases/adapters/postgresql/active_schema_test.rb
360
+ - test/cases/adapters/postgresql/quoting_test.rb
361
+ - test/cases/adapters/postgresql/spatial_type_test.rb
362
+ - test/cases/adapters/postgresql/nested_class_test.rb
363
+ - test/cases/adapters/postgresql/timestamp_test.rb
364
+ - test/cases/adapters/postgresql/postgis_test.rb
365
+ - test/cases/adapters/postgresql/connection_test.rb
366
+ - test/cases/adapters/postgresql/virtual_column_test.rb
367
+ - test/cases/adapters/postgresql/numeric_test.rb
368
+ - test/cases/adapters/postgresql/spatial_setup_test.rb
369
+ - test/cases/adapters/postgresql/serial_test.rb
370
+ - test/cases/adapters/postgresql/change_schema_test.rb
371
+ - test/cases/adapters/cockroachdb/referential_integrity_test.rb
372
+ - test/cases/defaults_test.rb
373
+ - test/cases/persistence_test.rb
374
+ - test/cases/connection_adapters/type_test.rb
375
+ - test/cases/adapter_test.rb
376
+ - test/cases/relations_test.rb
377
+ - test/cases/database_configurations/resolver_test.rb
378
+ - test/cases/unsafe_raw_sql_test.rb
379
+ - test/cases/comment_test.rb
380
+ - test/cases/fixtures_test.rb
381
+ - test/cases/relation_test.rb
382
+ - test/cases/migration/references_foreign_key_test.rb
383
+ - test/cases/migration/check_constraint_test.rb
384
+ - test/cases/migration/create_join_table_test.rb
385
+ - test/cases/migration/foreign_key_test.rb
386
+ - test/cases/migration/columns_test.rb
387
+ - test/cases/migration/hidden_column_test.rb
388
+ - test/cases/migration/change_schema_test.rb
389
+ - test/cases/transactions_test.rb
390
+ - test/cases/base_test.rb
391
+ - test/cases/test_fixtures_test.rb
392
+ - test/cases/helper_cockroachdb.rb
393
+ - test/models/spatial_model.rb
394
+ - test/models/building.rb
395
+ - test/schema/cockroachdb_specific_schema.rb
396
+ - test/support/exclude_from_transactional_tests.rb
397
+ - test/support/paths_cockroachdb.rb
398
+ - test/support/rake_helpers.rb
399
+ - test/support/copy_cat.rb
400
+ - test/support/template_creator.rb
401
+ - test/support/sql_logger.rb
402
+ - test/config.yml
403
+ - test/excludes/ExplicitlyNamedIndexMigrationTest.rb
404
+ - test/excludes/InheritanceComputeTypeTest.rb
405
+ - test/excludes/MarshalSerializationTest.rb
406
+ - test/excludes/PostgresqlInfinityTest.rb
407
+ - test/excludes/WithAnnotationsTest.rb
408
+ - test/excludes/CommentTest.rb
409
+ - test/excludes/SequenceNameDetectionTestCases/CollidedSequenceNameTest.rb
410
+ - test/excludes/SequenceNameDetectionTestCases/LongerSequenceNameDetectionTest.rb
411
+ - test/excludes/SchemaForeignKeyTest.rb
412
+ - test/excludes/LegacyPrimaryKeyTest/V5_0.rb
413
+ - test/excludes/LegacyPrimaryKeyTest/V4_2.rb
414
+ - test/excludes/PessimisticLockingTest.rb
415
+ - test/excludes/FixturesWithForeignKeyViolationsTest.rb
416
+ - test/excludes/SchemaIndexOpclassTest.rb
417
+ - test/excludes/PostgreSQLPartitionsTest.rb
418
+ - test/excludes/PrimaryKeyIntegerNilDefaultTest.rb
419
+ - test/excludes/CalculationsTest.rb
420
+ - test/excludes/PostgresqlLtreeTest.rb
421
+ - test/excludes/DirtyTest.rb
422
+ - test/excludes/RelationMergingTest.rb
423
+ - test/excludes/PersistenceTest.rb
424
+ - test/excludes/PostgreSQLGeometricTypesTest.rb
425
+ - test/excludes/TypeTest.rb
426
+ - test/excludes/PostgresqlNumberTest.rb
427
+ - test/excludes/PostgresqlXMLTest.rb
428
+ - test/excludes/PostgresqlTimestampFixtureTest.rb
429
+ - test/excludes/PostgresqlIntervalTest.rb
430
+ - test/excludes/LeftOuterJoinAssociationTest.rb
431
+ - test/excludes/SchemaIndexNullsOrderTest.rb
432
+ - test/excludes/NestedRelationScopingTest.rb
433
+ - test/excludes/UnloggedTablesTest.rb
434
+ - test/excludes/PostgresqlHstoreTest.rb
435
+ - test/excludes/CoreTest.rb
436
+ - test/excludes/TransactionIsolationTest.rb
437
+ - test/excludes/PostgresqlTimestampMigrationTest.rb
438
+ - test/excludes/PostgresqlVirtualColumnTest.rb
439
+ - test/excludes/SchemaDumperTest.rb
440
+ - test/excludes/RelationTest.rb
441
+ - test/excludes/BasicsTest.rb
442
+ - test/excludes/SanitizeTest.rb
443
+ - test/excludes/PostgresqlGeometricTest.rb
444
+ - test/excludes/SameNameDifferentDatabaseFixturesTest.rb
445
+ - test/excludes/MigrationTest.rb
446
+ - test/excludes/EagerLoadPolyAssocsTest.rb
447
+ - test/excludes/ActiveSupportSubclassWithFixturesTest.rb
448
+ - test/excludes/PostgresqlCollationTest.rb
449
+ - test/excludes/ForeignTableTest.rb
450
+ - test/excludes/SchemaAuthorizationTest.rb
451
+ - test/excludes/PostgresqlUUIDTest.rb
452
+ - test/excludes/PostgresqlFullTextTest.rb
453
+ - test/excludes/MaterializedViewTest.rb
454
+ - test/excludes/PostgresqlDeferredConstraintsTest.rb
455
+ - test/excludes/TestFixturesTest.rb
456
+ - test/excludes/PostgresqlJSONTest.rb
457
+ - test/excludes/PostgresqlExtensionMigrationTest.rb
458
+ - test/excludes/PostgresqlJSONBTest.rb
459
+ - test/excludes/PostgresqlDataTypeTest.rb
460
+ - test/excludes/PostgresqlCompositeWithCustomOIDTest.rb
461
+ - test/excludes/ReservedWordsMigrationTest.rb
462
+ - test/excludes/SchemaCreateTableOptionsTest.rb
463
+ - test/excludes/PostgresqlBitStringTest.rb
464
+ - test/excludes/PostgresqlCitextTest.rb
465
+ - test/excludes/PostgreSQLExplainTest.rb
466
+ - test/excludes/PostgresqlTypeLookupTest.rb
467
+ - test/excludes/PostgreSQLGeometricLineTest.rb
468
+ - test/excludes/PostgresqlMoneyTest.rb
469
+ - test/excludes/SchemaTest.rb
470
+ - test/excludes/PostgresqlArrayTest.rb
471
+ - test/excludes/ActiveRecord/PostgresqlConnectionTest.rb
472
+ - test/excludes/ActiveRecord/Encryption/ExtendedDeterministicQueriesPerformanceTest.rb
473
+ - test/excludes/ActiveRecord/Encryption/EnvelopeEncryptionPerformanceTest.rb
474
+ - test/excludes/ActiveRecord/Encryption/StoragePerformanceTest.rb
475
+ - test/excludes/ActiveRecord/Encryption/EncryptionPerformanceTest.rb
476
+ - test/excludes/ActiveRecord/InvertibleMigrationTest.rb
477
+ - test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapterTest.rb
478
+ - test/excludes/ActiveRecord/ConnectionAdapters/RegistrationIsolatedTest.rb
479
+ - test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapterPreventWritesTest.rb
480
+ - test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapterPreventWritesLegacyTest.rb
481
+ - test/excludes/ActiveRecord/ConnectionAdapters/PoolConfig/ResolverTest.rb
482
+ - test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter/BindParameterTest.rb
483
+ - test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter/QuotingTest.rb
484
+ - test/excludes/ActiveRecord/AdapterTestWithoutTransaction.rb
485
+ - test/excludes/ActiveRecord/RelationTest.rb
486
+ - test/excludes/ActiveRecord/MysqlDBCreateWithInvalidPermissionsTest.rb
487
+ - test/excludes/ActiveRecord/PostgresqlTransactionNestedTest.rb
488
+ - test/excludes/ActiveRecord/InstrumentationTest.rb
489
+ - test/excludes/ActiveRecord/PostgreSQLStructureDumpTest.rb
490
+ - test/excludes/ActiveRecord/AdapterTest.rb
491
+ - test/excludes/ActiveRecord/TooManyOrTest.rb
492
+ - test/excludes/ActiveRecord/PostgresqlTransactionTest.rb
493
+ - test/excludes/ActiveRecord/Migration/CreateJoinTableTest.rb
494
+ - test/excludes/ActiveRecord/Migration/ReferencesForeignKeyTest.rb
495
+ - test/excludes/ActiveRecord/Migration/PGChangeSchemaTest.rb
496
+ - test/excludes/ActiveRecord/Migration/ReferencesIndexTest.rb
497
+ - test/excludes/ActiveRecord/Migration/ForeignKeyTest.rb
498
+ - test/excludes/ActiveRecord/Migration/CompatibilityTest.rb
499
+ - test/excludes/ActiveRecord/Migration/CheckConstraintTest.rb
500
+ - test/excludes/ActiveRecord/Migration/ForeignKeyInCreateTest.rb
501
+ - test/excludes/ActiveRecord/Migration/CompositeForeignKeyTest.rb
502
+ - test/excludes/ActiveRecord/Migration/ReferencesStatementsTest.rb
503
+ - test/excludes/ActiveRecord/Migration/ChangeSchemaTest.rb
504
+ - test/excludes/ActiveRecord/Migration/InvalidOptionsTest.rb
505
+ - test/excludes/ActiveRecord/Migration/ColumnsTest.rb
506
+ - test/excludes/ActiveRecord/OrTest.rb
507
+ - test/excludes/PostgresqlBigSerialTest.rb
508
+ - test/excludes/PostgresqlUUIDGenerationTest.rb
509
+ - test/excludes/PostgresqlRangeTest.rb
510
+ - test/excludes/PostgresqlByteaTest.rb
511
+ - test/excludes/PrimaryKeyIntegerTest.rb
512
+ - test/excludes/UpdateableViewTest.rb
513
+ - test/excludes/FixturesTest.rb
514
+ - test/excludes/PostgresqlNetworkTest.rb
515
+ - test/excludes/AssociationDeprecationTest/WarnModeTest.rb
516
+ - test/excludes/AssociationDeprecationTest/fix_backtrace_cleaner.rb
517
+ - test/excludes/AssociationDeprecationTest/RaiseModeTest.rb
518
+ - test/excludes/AssociationDeprecationTest/NotifyModeTest.rb
519
+ - test/excludes/AssociationDeprecationTest/RaiseBacktraceModeTest.rb
520
+ - test/excludes/AssociationDeprecationTest/WarnBacktraceModeTest.rb
521
+ - test/excludes/PostgresqlPointTest.rb
522
+ - test/excludes/PostgreSQLReferentialIntegrityTest.rb
523
+ - test/excludes/BulkAlterTableMigrationsTest.rb
524
+ - test/excludes/UniquenessValidationTest.rb
525
+ - test/excludes/StrictLoadingFixturesTest.rb
526
+ - test/excludes/SchemaDumperDefaultsTest.rb
527
+ - test/excludes/PostgresqlRenameTableTest.rb
528
+ - test/excludes/UnsafeRawSqlTest.rb
529
+ - test/excludes/PrimaryKeysTest.rb
530
+ - test/excludes/PostgresqlDefaultExpressionTest.rb
531
+ - test/excludes/CreateOrFindByWithinTransactions.rb
532
+ - test/excludes/MultiDbMigratorTest.rb
533
+ - test/excludes/PostgresqlSerialTest.rb
534
+ - test/excludes/PostgresqlCompositeTest.rb
535
+ - test/excludes/EachTest.rb
536
+ - test/excludes/DefaultsUsingMultipleSchemasAndDomainTest.rb
537
+ - test/excludes/OrTest.rb
538
+ - test/excludes/TransactionInstrumentationTest.rb
539
+ - test/excludes/PostgresqlDomainTest.rb
540
+ - test/excludes/FixturesResetPkSequenceTest.rb
data/.editorconfig DELETED
@@ -1,7 +0,0 @@
1
- root = true
2
-
3
- [*.rb]
4
- indent_style = space
5
- indent_size = 2
6
- trim_trailing_whitespace = true
7
- insert_final_newline = true
@@ -1,46 +0,0 @@
1
- <!-- NOTE: This template is copying most of the Rails repo template -->
2
-
3
- ### Steps to reproduce
4
-
5
- <!-- (Guidelines for creating a bug report are [available
6
- here](https://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#creating-a-bug-report)) -->
7
-
8
- <!-- Paste your executable test case created from one of the scripts found [here](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/tree/master/.github/reproduction_scripts) below: -->
9
-
10
- ```ruby
11
- # Your reproduction script goes here
12
- ```
13
-
14
- ### Expected behavior
15
-
16
- <!-- Tell us what should happen -->
17
-
18
- ### Actual behavior
19
-
20
- <!-- Tell us what happens instead -->
21
-
22
- ### System configuration
23
-
24
- <!-- Either fill manually or paste the output of this script within code blocks:
25
-
26
- ```bash
27
- bundle info rails | head -1 &&
28
- ruby -v &&
29
- bundle info activerecord-cockroachdb-adapter | head -1 &&
30
- cockroach --version
31
- ```
32
- -->
33
-
34
- <!--
35
- ```
36
- # output here (and uncomment!)
37
- ```
38
- -->
39
-
40
- **Rails version**:
41
-
42
- **Ruby version**:
43
-
44
- **Adapter version**:
45
-
46
- **CockroachDB version**:
@@ -1,60 +0,0 @@
1
- # frozen_string_literal: true
2
- #
3
- # Adapted from https://github.com/rails/rails/blob/main/guides/bug_report_templates/active_record_migrations.rb
4
-
5
- require "bundler/inline"
6
-
7
- gemfile(true) do
8
- source "https://rubygems.org"
9
-
10
- gem "activerecord"
11
-
12
- gem "activerecord-cockroachdb-adapter"
13
- end
14
-
15
- require "activerecord-cockroachdb-adapter"
16
- require "minitest/autorun"
17
- require "logger"
18
-
19
- # You might want to change the database name for another one.
20
- ActiveRecord::Base.establish_connection("cockroachdb://root@localhost:26257/defaultdb")
21
- ActiveRecord::Base.logger = Logger.new(STDOUT)
22
-
23
- ActiveRecord::Schema.define do
24
- create_table :payments, force: true do |t|
25
- t.decimal :amount, precision: 10, scale: 0, default: 0, null: false
26
- end
27
- end
28
-
29
- class Payment < ActiveRecord::Base
30
- end
31
-
32
- class ChangeAmountToAddScale < ActiveRecord::Migration::Current # or use a specific version via `Migration[number]`
33
- def change
34
- reversible do |dir|
35
- dir.up do
36
- change_column :payments, :amount, :decimal, precision: 10, scale: 2
37
- end
38
-
39
- dir.down do
40
- change_column :payments, :amount, :decimal, precision: 10, scale: 0
41
- end
42
- end
43
- end
44
- end
45
-
46
- class BugTest < ActiveSupport::TestCase
47
- def test_migration_up
48
- ChangeAmountToAddScale.migrate(:up)
49
- Payment.reset_column_information
50
-
51
- assert_equal "decimal(10,2)", Payment.columns.last.sql_type
52
- end
53
-
54
- def test_migration_down
55
- ChangeAmountToAddScale.migrate(:down)
56
- Payment.reset_column_information
57
-
58
- assert_equal "decimal(10)", Payment.columns.last.sql_type
59
- end
60
- end