aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/schema_dumper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix default output for postgres network address typesErik Peterson2013-02-261-6/+6
|
* Skip schema dumper extensions test if connection does not support itCarlos Antonio da Silva2013-02-071-0/+1
| | | | | Travis failed because the postgresql version installed there does not support extensions, so we just need to skip this for now.
* Run schema dumper extensions without creating real extensionsCarlos Antonio da Silva2013-02-061-9/+2
| | | | | There is no need to create the extension in the database just to test if it's dumped, we can stub that instead.
* Do not print anything related to extensions when they don't none existCarlos Antonio da Silva2013-02-061-0/+10
| | | | | When extensions are supported but there's no one enabled in the database, we should not print anything related to them in schema.rb.
* improve tests to check for existence of extensions method, and skip testing ↵Justin George2013-02-061-8/+7
| | | | dumped extensions if they are unsupported by the database
* Add some tests to enumerate how extensions should be stored in the schema outputJustin George2013-02-061-0/+11
|
* Support for PostgreSQL's ltree data type.Rob Worley2013-01-041-0/+7
|
* Standardize the use of current_adapter?Rafael Mendonça França2013-01-011-2/+2
|
* Move to the schema-migrations-metadata branch.Jeremy Kemper2012-12-091-15/+2
| | | | | | | | | | | | | | | | | | | | | | | | Pending work on graceful app upgrades. Revert "Merge pull request #8439 from joshsusser/fixes" This reverts commit ce8ac39338f86388e70356b3a470b3ea443802ae, reversing changes made to b0e7b6f67c984d4b1502e801781ed75fad681633. Revert "Merge pull request #8431 from joshsusser/schemadump" This reverts commit 036d3e1c2b65c4b8cbd23de2e20ad67b9b756182, reversing changes made to 0c692f4d121792117b6a71e5ed590a31c3b9d12e. Revert "Merge branch 'joshsusser-master' into merge" This reverts commit 0c692f4d121792117b6a71e5ed590a31c3b9d12e, reversing changes made to 2e299fca715b083a60222a85e48f9d3b8dd8ce93. Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/schema_dumper_test.rb
* Use CURRENT_TIMESTAMP since it has apparently better cross db supportCarlos Antonio da Silva2012-12-061-1/+1
| | | | | LOCALTIMESTAMP is not support by sqlite3, and travis was giving us these errors: https://travis-ci.org/rails/rails/jobs/3535241/#L570
* style cleanupJosh Susser2012-12-031-1/+0
|
* Add migration history to schema.rb dumpJosh Susser2012-12-021-2/+16
|
* Add metadata to schema_migrationsJosh Susser2012-12-011-1/+1
| | | | | migrated_at: timestamp when migration run fingerprint: md5 hash of migration source name: filename without version or extension
* Use the MySQL varbinary type when appropriate in migrations.Victor Costan2012-10-271-0/+6
|
* use `setup` for setting up the testAaron Patterson2012-10-151-5/+1
|
* Moves column dump specific code to a module included in AbstractAdapterDan McClain2012-09-141-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Dump schema using new style hashKonstantin Shabanov2012-09-081-44/+44
|
* ActiveRecord support to PostgreSQL 9.2 JSON typeDickson S. Guedes2012-09-051-0/+7
| | | | | | | | | This implements the support to encode/decode JSON data to/from database and creating columns of type JSON using a native type [1] supported by PostgreSQL from version 9.2. [1] http://www.postgresql.org/docs/9.2/static/datatype-json.html
* test cleanup, remove ruby_type because it's no longer neededYves Senn2012-09-031-1/+1
| | | | | All tests with a custom inheritance_column use the `Vegtable` model. The field ruby_type on the Company models is no longer needed
* Merge pull request #4396 from kennyj/fix_4259Rafael Mendonça França2012-06-201-0/+32
|\ | | | | | | Fix GH #4259. When we execute schema dumper, we must remove table_name_prefix and table_name_suffix.
| * Fix GH #4259. We must remove table_name_prefix and table_name_suffix, when ↵kennyj2012-01-101-0/+32
| | | | | | | | we execute schema dumper.
* | Add uuid type support to PostgreSQL adapterKonstantin Shabanov2012-06-141-0/+7
| |
* | Adds migration and schema dump support for INET, CIDR, and MACADDRDan Seaver2012-05-051-0/+21
| |
* | Address the dump file format for hstoreYasuo Honda2012-03-151-1/+1
| |
* | Fix warning: The method name is a duplicate and wrong.kennyj2012-02-111-1/+1
| |
* | Merge branch 'joelhoffman-postgres_schema_builder' into instance_readerAaron Patterson2012-02-101-0/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * joelhoffman-postgres_schema_builder: Also support writing the hstore back to the database Hstore values are all strings string_to_hstore / hstore_to_string, serializing don't test schema where hstore not installed schema dumper tests for hstore Additional hstore tests, supporting null values, better compliance with postgres docs add hstore to postgres native types and defaults Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
| * | schema dumper tests for hstoreJoel2012-02-081-0/+7
| | |
* | | Made schema dumper recognize partial indices' where statementsMarcelo Silveira2012-02-091-0/+9
|/ /
* | Try to create schema migrations table in schema dumper testPiotr Sarnacki2012-01-161-0/+5
| |
* | move schema dumper tests to the correct classAaron Patterson2012-01-131-0/+10
|/
* call super from setupAaron Patterson2012-01-041-0/+1
|
* deprecate String#encoding_aware? and remove its usageSergey Nartimov2011-12-241-4/+2
|
* Fixed an issue id false option is ignored on mysql/mysql2 (fix #3440)kennyj2011-11-061-0/+5
|
* remove extra require for 'stringio' as it is required in helper.rbVishnu Atrai2011-07-311-1/+0
|
* magic comment test only if encoding_aware?.Arun Agrawal2011-07-301-3/+4
|
* dump IO encoding value along with schema.rb so the file can be reloaded. ↵Aaron Patterson2011-07-291-3/+12
| | | | fixes #1592
* please use ruby -I lib:test path/to/test.rb, or export RUBY_OPTAaron Patterson2011-06-061-1/+1
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-041-2/+1
| | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
* Added tsvector Datatype SupportBenjamin Fritsch2011-04-261-0/+7
| | | Applied Patch from https://rails.lighthouseapp.com/projects/8994/tickets/5577-suport-from-tsvector-data-type-in-postgresql
* Fix SQLite adapter name [#5842 state:resolved]Anil Wadghule2010-10-191-2/+2
|
* update tests for mysql2 supportBrian Lopez2010-08-021-2/+2
|
* PostgreSQL: XML datatype supportLeonardo Borges2009-08-091-1/+11
| | | | | | [#1874 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Don't define a default primary key in the schema dumper.Tristan Dunn2009-08-081-0/+8
| | | | | | [#1908 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* fix schema_dumper_test for Oracle as it supports precision up to 38Raimonds Simanovskis2009-08-061-1/+6
|
* Oracle can store integers with any :limitRaimonds Simanovskis2009-08-061-0/+5
|
* Add support for dumping non-standard primary keys when using the SQLite3 ↵Hongli Lai (Phusion)2009-07-071-7/+7
| | | | | | adapter. Fix unit tests so that this feature is tested for all adapters. [#2868 state:resolved] Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local>
* Schema dumper now records scale 0 decimal columns as decimal not integer.Giles Alexander2009-06-011-0/+5
| | | | | | | | | | The schema dumper would dump out any decimal or numeric column that had a zero scale as an integer column. This will cause problems for very large precision columns on some DBMSs, particularly PostgreSQL. It also looks strange to see your column change type after moving through schema.rb. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2741 state:committed]
* Fixed dumping from postgresql columns in index in wrong order. [#2515 ↵Max Lapshin2009-04-211-0/+5
| | | | | | state:resolved] Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
* Quote table names when casting to regclass so that capitalized tables are ↵Scott Woods2009-04-211-0/+5
| | | | | | supported. [#2418 state:resolved] Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
* Autoload ActiveRecord filesJoshua Peek2008-11-241-1/+0
|