1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/adapters/postgresql
Dan McClain 4544d2bc90 Moves column dump specific code to a module included in AbstractAdapter
Having column related schema dumper code in the AbstractAdapter. The
code remains the same, but by placing it in the AbstractAdapter, we can
then overwrite it with Adapter specific methods that will help with
Adapter specific data types.

The goal of moving this code here is to create a new migration key for
PostgreSQL's array type. Since any datatype can be an array, the goal is
to have ':array => true' as a migration option, turning the datatype
into an array. I've implemented this in postgres_ext, the syntax is
shown here: https://github.com/dockyard/postgres_ext#arrays

Adds array migration support

Adds array_test.rb outlining the test cases for array data type
Adds pg_array_parser to Gemfile for testing
Adds pg_array_parser to postgresql_adapter (unused in this commit)

Adds schema dump support for arrays

Adds postgres array type casting support

Updates changelog, adds note for inet and cidr support, which I forgot to add before

Removing debugger, Adds pg_array_parser to JRuby platform

Removes pg_array_parser requirement, creates ArrayParser module used by
PostgreSQLAdapter
2012-09-14 08:43:47 -04:00
..
active_schema_test.rb Modularize postgresql adapter 2012-09-05 15:17:45 +07:00
array_test.rb Moves column dump specific code to a module included in AbstractAdapter 2012-09-14 08:43:47 -04:00
connection_test.rb
datatype_test.rb Moves column dump specific code to a module included in AbstractAdapter 2012-09-14 08:43:47 -04:00
explain_test.rb
hstore_test.rb
json_test.rb Put the create_table block in a transaction. 2012-09-05 23:53:10 -03:00
postgresql_adapter_test.rb
quoting_test.rb
schema_authorization_test.rb
schema_test.rb
statement_pool_test.rb
timestamp_test.rb
utils_test.rb
view_test.rb