aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/schema_dumper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Added SchemaDumper support for tables with jsonb columns.Ted O'Meara2014-11-041-7/+0
|
* Replace Enumerable#reverse.each with Enumerable#reverse_eachErik Michaels-Ober2014-10-131-1/+1
|
* do not dump foreign keys for ignored tables.Yves Senn2014-09-171-0/+5
|
* Speed up schema dumper testsJeremy Kemper2014-09-101-11/+9
| | | | Dump the standard schema once instead of redoing it per test
* Include default column limits in schema.rbJeremy Kemper2014-09-101-4/+10
| | | | | | Allows :limit defaults to be changed without pulling the rug out from under old migrations that omitted :limit because it matched the default at the time.
* MySQL: schema.rb now includes TEXT and BLOB column limits.Jeremy Kemper2014-09-101-4/+4
|
* MySQL: correct LONGTEXT and LONGBLOB limits from 2GB to their true 4GBJeremy Kemper2014-09-101-2/+2
|
* Reset ActiveRecord::SchemaDumper.ignore_tables value after changed in testsAkira Matsuda2014-09-031-26/+12
|
* Remove 'if exists' from drop table statement then use `table_exists?`Yasuo Honda2014-09-031-1/+1
| | | | | Since 'drop table if exists' statement does not always work with some databases such as Oracle.
* create_table + transactional_fixtures = :bomb:Akira Matsuda2014-08-151-0/+4
|
* fk: dump foreign keys at the bottom to make sure tables exist.Yves Senn2014-06-261-0/+7
|
* fk: dump foreign keys to schema.rbYves Senn2014-06-261-1/+11
| | | | respect `table_name_prefix` and `table_name_suffix`.
* test, fix typo, `create_index` does not exist.Yves Senn2014-06-101-1/+1
|
* Add missing test cases for schema dumping defaultsSean Griffin2014-06-061-0/+29
|
* pg, preserve point type when schema dumping.Yves Senn2014-06-031-1/+1
|
* Remove duplicated setup in testSean Griffin2014-05-231-4/+3
|
* Move extract_scale to decimal typeSean Griffin2014-05-211-2/+2
| | | | | | The only type that has a scale is decimal. There's a special case where decimal columns with 0 scale are type cast to integers if the scale is not specified. Appears to only affect schema dumping.
* Merge pull request #12016 from roderickvd/uuid_fixesRafael Mendonça França2014-04-041-1/+1
|\ | | | | | | | | | | | | | | | | | | Auto-generate stable fixture UUIDs on PostgreSQL Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/fixtures.rb activerecord/test/cases/adapters/postgresql/uuid_test.rb activesupport/CHANGELOG.md
| * Auto-generate stable fixture UUIDs on PostgreSQL.Roderick van Domburg2014-01-071-1/+1
| | | | | | | | Fixes: #11524
* | register OID for PostgreSQL citex datatype [Troy Kruthoff & Lachlan Sylvester]lsylvester2014-03-111-0/+7
| | | | | | | | citext makes it possible to use AR Hash finders for case-insensitive matching as sql UPPER/LOWER functions are not needed.
* | current_adapter? accepts multiple argumentsRafael Mendonça França2014-03-101-2/+2
| |
* | sqlite >= 3.8.0 supports partial indexesCody Cutrer2014-01-141-0/+2
|/
* Don't skip tests if we don't need to.Rafael Mendonça França2013-11-081-13/+14
| | | | | | | We can conditional define the tests depending on the adapter or connection. Lets keep the skip for fail tests that need to be fixed.
* Escape the parentheses in the default function regexpRafael Mendonça França2013-10-211-0/+5
| | | | | | | This is causing every default value in PostreSQL database to being handled as default function. Fixes #12581
* Fix typo. This test isn't executed in even postgresql.kennyj2013-09-221-1/+1
|
* Correctly parse bigint defaults in PostgreSQLErik Peterson2013-04-051-0/+5
|
* Fix indent and change "or" usage to "||" in schema dumper testsCarlos Antonio da Silva2013-03-301-5/+5
|
* Add support for FULLTEXT and SPATIAL indexes using the :type flag for MySQL.Ken Mazaika2013-03-271-0/+6
|
* Dump the 'using' options for a SQL index into the schema.Ken Mazaika2013-03-271-2/+8
|
* 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.