aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove more skipRafael Mendonça França2013-11-081-2/+0
|
* Don't skip tests if we don't need to.Rafael Mendonça França2013-11-081-100/+92
| | | | | | | We can conditional define the tests depending on the adapter or connection. Lets keep the skip for fail tests that need to be fixed.
* Warnings removed for ruby trunkArun Agrawal2013-11-011-19/+19
| | | Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb
* added schema_migrations_table_name to ActiveRecord::Base in order that the ↵Jerad Phelps2013-10-271-1/+10
| | | | | | | | | | | | | | | | | | | | name of the schema migrations table can be configured. consolidated test_schema_migrations_table_name tests Added changelog entry edited changelog removed commented lines removed reader ensure the schema migrations table is reset at end of test added entry to configuration guide guides typo and changelog order
* Adding deprecation assertions for proper_table_name.wangjohn2013-08-241-7/+21
| | | | This prevents deprecation warnings from popping up.
* Making proper_table_name take in options.wangjohn2013-08-221-1/+28
| | | | | | | | | | | The options will specify the prefix and the suffix. Also, I'm moving the method to be an instance method on the +Migration+ instance. This makes more sense than being a class method on the +Migrator+ class because the only place that uses it is on a +Migration+ instance (in a method_missing hook). The logic for the Migrator shouldn't be doing any work to calculate the table name, it should be the Migration itself. Also made some small indentation fixes.
* Revert "fix order dependent test related to migration"Akira Matsuda2013-07-291-4/+0
| | | | | | This reverts commit 10259c3e906da2191ef0d43cd664a3b5504d9f8c. reason: this causes rake test_mysql and test_mysql2 fail
* fix order dependent test related to migrationNeeraj Singh2013-07-281-0/+4
| | | | | | If the order in which tests are executed is changed then test fails. This commit ensures that all migrations are run before ensuring that there are no pending migration.
* removes the obsolete private method column_methods_hash [Closes #11406]Xavier Noria2013-07-161-15/+10
|
* Fix #10789. Now at last ::Logger doesn't support #silence method .kennyj2013-06-051-0/+9
|
* Improve the error messageRafael Mendonça França2013-04-191-1/+1
|
* Support transactions in Migrator.runbondarev2013-04-181-0/+26
|
* 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
|