Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add schema dumping tests for datetime and time precision | Ryuta Kamizono | 2015-02-20 | 1 | -7/+0 |
| | |||||
* | Prefer `drop_table if_exists: true` over raw SQL | Ryuta Kamizono | 2015-02-18 | 1 | -1/+1 |
| | | | | | Lowercase raw SQL has been replaced by 07b659c already. This commit replaces everything else of raw SQL. | ||||
* | Remove debug code | Carlos Antonio da Silva | 2015-02-08 | 1 | -5/+0 |
| | | | | Added by 101c19f55f5f1d86d35574b805278f11e9a1a48e. | ||||
* | Allow a symbol to be passed to `attribute`, in place of a type object | Sean Griffin | 2015-02-06 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | The same is not true of `define_attribute`, which is meant to be the low level no-magic API that sits underneath. The differences between the two APIs are: - `attribute` - Lazy (the attribute will be defined after the schema has loaded) - Allows either a type object or a symbol - `define_attribute` - Runs immediately (might get trampled by schema loading) - Requires a type object This was the last blocker in terms of public interface requirements originally discussed for this feature back in May. All the implementation blockers have been cleared, so this feature is probably ready for release (pending one more look-over by me). | ||||
* | Fix `test_types_line_up` when column type missing | Ryuta Kamizono | 2015-01-30 | 1 | -2/+2 |
| | | | | | | | a column type `xml` is missing in regexp pattarn. However, `assert_equal 1, lengths.uniq.length` is success when `lengths` are all `nil` because a column type is missing. a test will be failed by using `compact` when a column type is missing. | ||||
* | Should escape regexp wildcard character `.` | Ryuta Kamizono | 2015-01-19 | 1 | -18/+18 |
| | | | | | `.` is regexp meta character. It should be escape for `assert_match` correctly. | ||||
* | Add firebird support to test suite | Ray Zane | 2015-01-05 | 1 | -0/+2 |
| | |||||
* | Allow precision option for MySQL datetimes. | Ryuta Kamizono | 2015-01-02 | 1 | -0/+7 |
| | |||||
* | `force: :cascade` to recreate tables referenced by foreign-keys. | Yves Senn | 2014-12-19 | 1 | -0/+5 |
| | |||||
* | tests, move schema shorthand assertions into pg specific tests. | Yves Senn | 2014-12-02 | 1 | -71/+0 |
| | |||||
* | Remove is_a? check when ignoring tables | Sean Griffin | 2014-11-20 | 1 | -10/+0 |
| | | | | | Technically changes the API, as it will allow any object which responds to `===`. Personally, I think this is more flexible. | ||||
* | Added SchemaDumper support for tables with jsonb columns. | Ted O'Meara | 2014-11-04 | 1 | -7/+0 |
| | |||||
* | Replace Enumerable#reverse.each with Enumerable#reverse_each | Erik Michaels-Ober | 2014-10-13 | 1 | -1/+1 |
| | |||||
* | do not dump foreign keys for ignored tables. | Yves Senn | 2014-09-17 | 1 | -0/+5 |
| | |||||
* | Speed up schema dumper tests | Jeremy Kemper | 2014-09-10 | 1 | -11/+9 |
| | | | | Dump the standard schema once instead of redoing it per test | ||||
* | Include default column limits in schema.rb | Jeremy Kemper | 2014-09-10 | 1 | -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 Kemper | 2014-09-10 | 1 | -4/+4 |
| | |||||
* | MySQL: correct LONGTEXT and LONGBLOB limits from 2GB to their true 4GB | Jeremy Kemper | 2014-09-10 | 1 | -2/+2 |
| | |||||
* | Reset ActiveRecord::SchemaDumper.ignore_tables value after changed in tests | Akira Matsuda | 2014-09-03 | 1 | -26/+12 |
| | |||||
* | Remove 'if exists' from drop table statement then use `table_exists?` | Yasuo Honda | 2014-09-03 | 1 | -1/+1 |
| | | | | | Since 'drop table if exists' statement does not always work with some databases such as Oracle. | ||||
* | create_table + transactional_fixtures = :bomb: | Akira Matsuda | 2014-08-15 | 1 | -0/+4 |
| | |||||
* | fk: dump foreign keys at the bottom to make sure tables exist. | Yves Senn | 2014-06-26 | 1 | -0/+7 |
| | |||||
* | fk: dump foreign keys to schema.rb | Yves Senn | 2014-06-26 | 1 | -1/+11 |
| | | | | respect `table_name_prefix` and `table_name_suffix`. | ||||
* | test, fix typo, `create_index` does not exist. | Yves Senn | 2014-06-10 | 1 | -1/+1 |
| | |||||
* | Add missing test cases for schema dumping defaults | Sean Griffin | 2014-06-06 | 1 | -0/+29 |
| | |||||
* | pg, preserve point type when schema dumping. | Yves Senn | 2014-06-03 | 1 | -1/+1 |
| | |||||
* | Remove duplicated setup in test | Sean Griffin | 2014-05-23 | 1 | -4/+3 |
| | |||||
* | Move extract_scale to decimal type | Sean Griffin | 2014-05-21 | 1 | -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_fixes | Rafael Mendonça França | 2014-04-04 | 1 | -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 Domburg | 2014-01-07 | 1 | -1/+1 |
| | | | | | | | | Fixes: #11524 | ||||
* | | register OID for PostgreSQL citex datatype [Troy Kruthoff & Lachlan Sylvester] | lsylvester | 2014-03-11 | 1 | -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 arguments | Rafael Mendonça França | 2014-03-10 | 1 | -2/+2 |
| | | |||||
* | | sqlite >= 3.8.0 supports partial indexes | Cody Cutrer | 2014-01-14 | 1 | -0/+2 |
|/ | |||||
* | Don't skip tests if we don't need to. | Rafael Mendonça França | 2013-11-08 | 1 | -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 regexp | Rafael Mendonça França | 2013-10-21 | 1 | -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. | kennyj | 2013-09-22 | 1 | -1/+1 |
| | |||||
* | Correctly parse bigint defaults in PostgreSQL | Erik Peterson | 2013-04-05 | 1 | -0/+5 |
| | |||||
* | Fix indent and change "or" usage to "||" in schema dumper tests | Carlos Antonio da Silva | 2013-03-30 | 1 | -5/+5 |
| | |||||
* | Add support for FULLTEXT and SPATIAL indexes using the :type flag for MySQL. | Ken Mazaika | 2013-03-27 | 1 | -0/+6 |
| | |||||
* | Dump the 'using' options for a SQL index into the schema. | Ken Mazaika | 2013-03-27 | 1 | -2/+8 |
| | |||||
* | Fix default output for postgres network address types | Erik Peterson | 2013-02-26 | 1 | -6/+6 |
| | |||||
* | Skip schema dumper extensions test if connection does not support it | Carlos Antonio da Silva | 2013-02-07 | 1 | -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 extensions | Carlos Antonio da Silva | 2013-02-06 | 1 | -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 exist | Carlos Antonio da Silva | 2013-02-06 | 1 | -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 George | 2013-02-06 | 1 | -8/+7 |
| | | | | dumped extensions if they are unsupported by the database | ||||
* | Add some tests to enumerate how extensions should be stored in the schema output | Justin George | 2013-02-06 | 1 | -0/+11 |
| | |||||
* | Support for PostgreSQL's ltree data type. | Rob Worley | 2013-01-04 | 1 | -0/+7 |
| | |||||
* | Standardize the use of current_adapter? | Rafael Mendonça França | 2013-01-01 | 1 | -2/+2 |
| | |||||
* | Move to the schema-migrations-metadata branch. | Jeremy Kemper | 2012-12-09 | 1 | -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 support | Carlos Antonio da Silva | 2012-12-06 | 1 | -1/+1 |
| | | | | | LOCALTIMESTAMP is not support by sqlite3, and travis was giving us these errors: https://travis-ci.org/rails/rails/jobs/3535241/#L570 |