Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Preserve magic comments and content encoding of copied migrations. | OZAWA Sakuro | 2013-03-09 | 1 | -0/+20 |
| | | | | | During insertion of "# This migration comes from ... " comment at the beginning of a migration, presence of magic comment was not considered. | ||||
* | If an index can't be found by column, use the index name. | Ezekiel Smithburg | 2013-03-07 | 1 | -0/+16 |
| | | | | schema_statements uses the column name by default to construct the index name, and then raises an exception if it doesn't exist, even if the name option is specified, which causes #8858. this commit makes index_name_for_remove fall back to constructing the index name to remove based on the name option. | ||||
* | transactions can be turned off per Migration. | Yves Senn | 2013-03-05 | 1 | -0/+32 |
| | | | | | | | | | | | Closes #9483. There are SQL Queries that can't run inside a transaction. Since the Migrator used to wrap all Migrations inside a transaction there was no way to run these queries within a migration. This patch adds `self.disable_ddl_transaction!` to the migration to turn transactions off when necessary. | ||||
* | transactional migration test-case was broken. | Yves Senn | 2013-03-05 | 1 | -3/+7 |
| | | | | | | The cleanup commit a85625d broke the test-case. The schema was no longer modified so there was no way to check that the rollback actually happened. | ||||
* | Be sure to clear schema cache | Akira Matsuda | 2013-01-22 | 1 | -0/+3 |
| | |||||
* | Reset table_name_{prefix,suffix}, and table_name after each test | Akira Matsuda | 2013-01-22 | 1 | -11/+4 |
| | | | | because some tests were not resetting them, and thus the tests were order dependent | ||||
* | Fix failing test under sqlite3 | Akira Matsuda | 2013-01-07 | 1 | -1/+1 |
| | |||||
* | Alias refute methods to assert_not and perfer assert_not on tests | Rafael Mendonça França | 2012-12-31 | 1 | -2/+2 |
| | |||||
* | Move to the schema-migrations-metadata branch. | Jeremy Kemper | 2012-12-09 | 1 | -10/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | convert time to string | Josh Susser | 2012-12-06 | 1 | -1/+1 |
| | | | why is this a Time to start with? | ||||
* | style cleanup | Josh Susser | 2012-12-03 | 1 | -1/+1 |
| | |||||
* | Add metadata to schema_migrations | Josh Susser | 2012-12-01 | 1 | -0/+9 |
| | | | | | migrated_at: timestamp when migration run fingerprint: md5 hash of migration source name: filename without version or extension | ||||
* | Move migration test together with other join table tests | Carlos Antonio da Silva | 2012-11-21 | 1 | -7/+0 |
| | |||||
* | Merge pull request #7716 from steveklabnik/issue_7715 | Rafael Mendonça França | 2012-11-21 | 1 | -0/+7 |
|\ | | | | | Coerce strings in create_join_table. | ||||
| * | Coerce strings in create_join_table. | Steve Klabnik | 2012-11-21 | 1 | -0/+7 |
| | | | | | | | | | | | | | | If you accidentally pass a string and a symbol, this breaks. So we coerce them both to strings. Fixes #7715 | ||||
* | | fix test :/ | Jon Leighton | 2012-10-19 | 1 | -5/+1 |
|/ | |||||
* | Use . instead of :: for class methods, add CHANGELOG entries | José Valim | 2012-06-10 | 1 | -2/+2 |
| | |||||
* | Merge pull request #6665 from schneems/schneems/raise-migration-error | José Valim | 2012-06-10 | 1 | -0/+15 |
|\ | | | | | Notify A User they Have Pending Migrations | ||||
| * | raise error for pending migration | schneems | 2012-06-09 | 1 | -2/+2 |
| | | | | | | can be configured by setting config.active_record.migration. Setting to :page_load will raise an error on each page refresh if there are migrations that are pending. Setting to :page_load is defaulted in development for new applications. | ||||
| * | add convenience methods for checking migrations | schneems | 2012-06-03 | 1 | -0/+15 |
| | | | | | | if a rails project needs to be migrated ActiveRecord::Migrator.needs_migration? will be true or false if the current version matches the last version. | ||||
* | | Fix fragile #assert_queries implementation and usages. | Steve Jorgensen | 2012-06-09 | 1 | -1/+1 |
|/ | | | | | | | | | Several tests that passed when run in the order they are loaded by rake test were failing when run in different sequences due to problems with the implementation of assert_queries and assert_no_queries as well as incorrect assumptions made about how many queries might be executed by a database adapter in various cases. | ||||
* | port some mocha to minitest/mock | Aaron Patterson | 2012-05-18 | 1 | -222/+0 |
| | |||||
* | Integer limit out of range should be allowed to raise. Closes #6272 | Erich Menge | 2012-05-16 | 1 | -2/+23 |
| | |||||
* | Refactored remove_column | Edgars Beigarts | 2012-05-02 | 1 | -2/+2 |
| | |||||
* | remove calls to find(:first), find(:last) and find(:all) | Jon Leighton | 2012-04-26 | 1 | -8/+8 |
| | |||||
* | Automatically create indexes for references/belongs_to statements in migrations. | Joshua Wood | 2012-04-14 | 1 | -0/+1 |
| | |||||
* | Fix ORA-00972 error at test_rename_table_with_prefix_and_suffix | Yasuo Honda | 2012-04-13 | 1 | -4/+4 |
| | |||||
* | moving ordered hash to normal hash because ruby 1.9.3 hash defaultly ordered one | Karunakar (Ruby) | 2012-02-09 | 1 | -5/+5 |
| | |||||
* | stop more ddl changes | Aaron Patterson | 2012-01-16 | 1 | -14/+0 |
| | |||||
* | stop ddl modifications for another test | Aaron Patterson | 2012-01-16 | 1 | -12/+0 |
| | |||||
* | stop making ddl changes for migrator tests | Aaron Patterson | 2012-01-16 | 1 | -55/+0 |
| | |||||
* | move another migrator to use sensors | Aaron Patterson | 2012-01-16 | 1 | -12/+0 |
| | |||||
* | moving verbosity tests to the migrator test, removing ddl changes | Aaron Patterson | 2012-01-16 | 1 | -18/+0 |
| | |||||
* | silencing migrator tests, refactoring the migration test helper | Aaron Patterson | 2012-01-16 | 1 | -22/+1 |
| | |||||
* | fix tests on sqlite3 | Aaron Patterson | 2012-01-16 | 1 | -0/+4 |
| | |||||
* | prefer method sensors over actual ddl changes | Aaron Patterson | 2012-01-16 | 1 | -69/+0 |
| | |||||
* | test that migrations have connections, and method missing delegates | Aaron Patterson | 2012-01-16 | 1 | -7/+16 |
| | |||||
* | making sure the temp connection and the real connection are different after dup | Aaron Patterson | 2012-01-16 | 1 | -3/+3 |
| | |||||
* | stop depending on the filesystem for interleaved migration tests | Aaron Patterson | 2012-01-13 | 1 | -21/+0 |
| | |||||
* | refactor the migrate method to filter migrations before running them | Aaron Patterson | 2012-01-13 | 1 | -1/+1 |
| | |||||
* | move schema dumper tests to the correct class | Aaron Patterson | 2012-01-13 | 1 | -9/+0 |
| | |||||
* | move another migrator test, use schema migration model | Aaron Patterson | 2012-01-13 | 1 | -10/+0 |
| | |||||
* | move another migrator test to the correct class | Aaron Patterson | 2012-01-13 | 1 | -11/+0 |
| | |||||
* | moving more migrator tests to the right test case | Aaron Patterson | 2012-01-13 | 1 | -40/+0 |
| | |||||
* | test code that finds migrations | Aaron Patterson | 2012-01-13 | 1 | -6/+1 |
| | |||||
* | moving migrator tests to a migrator test class | Aaron Patterson | 2012-01-13 | 1 | -18/+0 |
| | |||||
* | adding a test class for table renaming | Aaron Patterson | 2012-01-13 | 1 | -70/+0 |
| | |||||
* | moving more column renaming tests | Aaron Patterson | 2012-01-13 | 1 | -71/+0 |
| | |||||
* | moving more renaming tests to the proper test case | Aaron Patterson | 2012-01-13 | 1 | -93/+0 |
| | |||||
* | moving rename column tests to their own class | Aaron Patterson | 2012-01-13 | 1 | -87/+11 |
| |