aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/schema_dumper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Test for tinyintJeremy Kemper2008-06-231-1/+1
|
* Always treat integer :limit as byte length. [#420 state:resolved]Tarmo Tänav2008-06-221-0/+46
|
* Added AbstractAdapter#table_exists? and made AbstractAdapter#table ↵Tarmo Tänav2008-05-071-107/+104
| | | | | | implementation non-optional Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Add support for interleaving migrations by storing which migrations have run ↵Rick Olson2008-04-091-3/+3
| | | | | | in the new schema_migrations table. Closes #11493 [jordi] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the mysql schema dumper roundtrip the limits of text/blob columns. ↵Michael Koziarski2008-03-021-0/+12
| | | | | | Closes #7424 [will.bryant] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: omit text/blob defaults from the schema instead of using an empty ↵Jeremy Kemper2008-01-301-3/+1
| | | | | | string. Closes #10963. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/railsJeremy Kemper2008-01-211-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix pathsJeremy Kemper2008-01-181-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move tests to casesJeremy Kemper2008-01-181-0/+131
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de