aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Preserve magic comments and content encoding of copied migrations.OZAWA Sakuro2013-03-091-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 Smithburg2013-03-071-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 Senn2013-03-051-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 Senn2013-03-051-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 cacheAkira Matsuda2013-01-221-0/+3
|
* Reset table_name_{prefix,suffix}, and table_name after each testAkira Matsuda2013-01-221-11/+4
| | | | because some tests were not resetting them, and thus the tests were order dependent
* Fix failing test under sqlite3Akira Matsuda2013-01-071-1/+1
|
* Alias refute methods to assert_not and perfer assert_not on testsRafael Mendonça França2012-12-311-2/+2
|
* Move to the schema-migrations-metadata branch.Jeremy Kemper2012-12-091-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 stringJosh Susser2012-12-061-1/+1
| | | why is this a Time to start with?
* style cleanupJosh Susser2012-12-031-1/+1
|
* Add metadata to schema_migrationsJosh Susser2012-12-011-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 testsCarlos Antonio da Silva2012-11-211-7/+0
|
* Merge pull request #7716 from steveklabnik/issue_7715Rafael Mendonça França2012-11-211-0/+7
|\ | | | | Coerce strings in create_join_table.
| * Coerce strings in create_join_table.Steve Klabnik2012-11-211-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 Leighton2012-10-191-5/+1
|/
* Use . instead of :: for class methods, add CHANGELOG entriesJosé Valim2012-06-101-2/+2
|
* Merge pull request #6665 from schneems/schneems/raise-migration-errorJosé Valim2012-06-101-0/+15
|\ | | | | Notify A User they Have Pending Migrations
| * raise error for pending migration schneems2012-06-091-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 migrationsschneems2012-06-031-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 Jorgensen2012-06-091-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/mockAaron Patterson2012-05-181-222/+0
|
* Integer limit out of range should be allowed to raise. Closes #6272Erich Menge2012-05-161-2/+23
|
* Refactored remove_columnEdgars Beigarts2012-05-021-2/+2
|
* remove calls to find(:first), find(:last) and find(:all)Jon Leighton2012-04-261-8/+8
|
* Automatically create indexes for references/belongs_to statements in migrations.Joshua Wood2012-04-141-0/+1
|
* Fix ORA-00972 error at test_rename_table_with_prefix_and_suffixYasuo Honda2012-04-131-4/+4
|
* moving ordered hash to normal hash because ruby 1.9.3 hash defaultly ordered oneKarunakar (Ruby)2012-02-091-5/+5
|
* stop more ddl changesAaron Patterson2012-01-161-14/+0
|
* stop ddl modifications for another testAaron Patterson2012-01-161-12/+0
|
* stop making ddl changes for migrator testsAaron Patterson2012-01-161-55/+0
|
* move another migrator to use sensorsAaron Patterson2012-01-161-12/+0
|
* moving verbosity tests to the migrator test, removing ddl changesAaron Patterson2012-01-161-18/+0
|
* silencing migrator tests, refactoring the migration test helperAaron Patterson2012-01-161-22/+1
|
* fix tests on sqlite3Aaron Patterson2012-01-161-0/+4
|
* prefer method sensors over actual ddl changesAaron Patterson2012-01-161-69/+0
|
* test that migrations have connections, and method missing delegatesAaron Patterson2012-01-161-7/+16
|
* making sure the temp connection and the real connection are different after dupAaron Patterson2012-01-161-3/+3
|
* stop depending on the filesystem for interleaved migration testsAaron Patterson2012-01-131-21/+0
|
* refactor the migrate method to filter migrations before running themAaron Patterson2012-01-131-1/+1
|
* move schema dumper tests to the correct classAaron Patterson2012-01-131-9/+0
|
* move another migrator test, use schema migration modelAaron Patterson2012-01-131-10/+0
|
* move another migrator test to the correct classAaron Patterson2012-01-131-11/+0
|
* moving more migrator tests to the right test caseAaron Patterson2012-01-131-40/+0
|
* test code that finds migrationsAaron Patterson2012-01-131-6/+1
|
* moving migrator tests to a migrator test classAaron Patterson2012-01-131-18/+0
|
* adding a test class for table renamingAaron Patterson2012-01-131-70/+0
|
* moving more column renaming testsAaron Patterson2012-01-131-71/+0
|
* moving more renaming tests to the proper test caseAaron Patterson2012-01-131-93/+0
|
* moving rename column tests to their own classAaron Patterson2012-01-131-87/+11
|