aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Changed the default value for the options argument on ↵Grant Neufeld2011-06-181-0/+12
| | | | | | | ActiveRecord::ConnectionAdapters::Table#column_exists? from nil to an empty Hash {}. That method calls through to ActiveRecord::ConnectionAdapters::SchemaStatements##column_exists? expects options to be a Hash. When options was nil, an error would occur in cases where the column did exist because the called method attempted to perform a key lookup on options.
* please use ruby -I lib:test path/to/test.rb, or export RUBY_OPTAaron Patterson2011-06-061-1/+1
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-041-1/+1
| | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
* Active Record typos.R.T. Lechow2011-03-051-2/+2
|
* adjust query counts to be consistent across databases, make sure database ↵Aaron Patterson2011-02-041-1/+4
| | | | log the same things
* Run BulkAlterTableMigrationsTest only when the adapter supports themPratik Naik2011-01-311-97/+99
|
* Add :bulk => true option to change_tablePratik Naik2011-01-311-0/+138
|
* In a number of places in the tests, we only need to turn off transactional ↵Jon Leighton2011-01-111-2/+1
| | | | fixtures when the DB does not support savepoints. This speeds the test run up by about 8-9% on my computer, when running rake test_sqlite3_mem :)
* Fix test on finding migrations from 2 pathsPiotr Sarnacki2010-12-091-5/+7
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Allow to run migrations from more than one directoryPiotr Sarnacki2010-12-091-0/+12
|
* removing unused setupAaron Patterson2010-12-031-4/+0
|
* in the middle of refactoringAaron Patterson2010-12-031-50/+30
|
* rolling out migrated_at until I can fix the buildAaron Patterson2010-12-011-45/+7
|
* removing duplicate testAaron Patterson2010-12-011-37/+0
|
* make sure we have a value in migrated_atAaron Patterson2010-12-011-1/+1
|
* not all databases return dates as stringsAaron Patterson2010-12-011-1/+1
|
* name in schema_migrations, migrations in schema dumpJosh Susser2010-12-011-8/+12
|
* record migration timestamp when migrations runJosh Susser2010-12-011-1/+48
|
* Add migrated_at column to schema_migrations table.Josh Susser2010-12-011-6/+30
|
* testing instance based migrationsAaron Patterson2010-11-171-0/+38
|
* schema migrations work as instancesAaron Patterson2010-11-171-0/+1
|
* converted migrations to support instance methodsAaron Patterson2010-11-171-4/+4
|
* fixing assertions so error messages will be more helpfulAaron Patterson2010-11-171-4/+4
|
* removing many unused variablesAaron Patterson2010-11-161-5/+5
|
* Create directory before copying migrations if it does not existPiotr Sarnacki2010-11-161-0/+15
|
* Fix SQLite adapter name [#5842 state:resolved]Anil Wadghule2010-10-191-4/+4
|
* Add callback on skipped migration while copying migrationsPiotr Sarnacki2010-10-091-2/+20
|
* Change the method for copying migrations, do not add scope.Piotr Sarnacki2010-10-091-21/+23
| | | | | | | The purpose of this change is to allow copying fail on the same names. Migrations change database and they should be treated with caution, if 2 migrations are named the same it's much better to skip migration and allow user decide if it should be copied or not.
* eliminating method_missing on TableDefinitionAaron Patterson2010-09-291-2/+12
|
* Test add_index and remove_index with a symbol name #4891Étienne Barrié2010-09-281-0/+7
|
* Fix remove_index issue when provided :name is a symbolTim Connor2010-09-261-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fix issue with remove_index and add unit test [#5645 state:resolved]Tim Connor2010-09-181-3/+4
|
* Fix copying migrations to empty directoryPiotr Sarnacki2010-09-031-0/+14
|
* Implemented ActiveRecord::Migrations#copy based on James Adam's ideaPiotr Sarnacki2010-09-031-0/+111
| | | | | | | | | | | | | | | ActiveRecord::Migration#copy allows to copy migrations from one place to another, changing migrations versions and adding scope to filename. For example: ActiveRecord::Migration.copy("db/migrate", :blog_engine => "vendor/gems/blog/db/migrate") will copy all migrations from vendor/gems/blog/db/migrate to db/migrate with such format: Versions of copied migrations will be reversioned to be appended after migrations that already exists in db/migrate
* reload bob after his journy to a new timezoneBrian Lopez2010-08-201-0/+1
|
* Makes topics.written_on null => true back again some tests rely on thatSantiago Pastorino2010-08-151-0/+3
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-2/+2
| | | | 's/[ \t]*$//' -i {} \;)
* update tests for mysql2 supportBrian Lopez2010-08-021-6/+6
|
* Tests to specify the behaviour of ActiveRecord::Migrator.get_all_versions() ↵Thiago Pradi2010-07-081-0/+14
| | | | | | [#5066 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Test that adding an index also doesn't raise an exception.J. Pablo Fernández2010-06-291-1/+1
| | | | | | [#4809 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Replaced statement in comment with an assertionPaul Barry2010-06-291-2/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fixed error when removing an index from a table name values, which is a ↵J. Pablo Fernández2010-06-291-0/+16
| | | | | | reserved word, with test. Signed-off-by: José Valim <jose.valim@gmail.com>
* Add column and index query methods to ActiveRecord::SchemaAndrew White2010-06-261-4/+104
| | | | | | [#4219 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* remove_column should raise an ArgumentError when no columns are passed ↵Jeff Dean2010-06-231-0/+4
| | | | | | [#4803 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com>
* use assert_in_delta() for floating point comparisons in tests [#4871 ↵Aaron Patterson2010-06-161-1/+1
| | | | | | state:resolved] Signed-off-by: Carl Lerche <carllerche@mac.com>
* SQLite2Adapter doesn't existSantiago Pastorino2010-06-091-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* test fixes for Oracle enhanced adapter:Raimonds Simanovskis2010-06-041-2/+2
| | | | | latest oracle_enhanced adapter does automatic shortening of index names ignore select from all_triggers table in assert_queries
* Oracle enhanced adapter now supports shortening of default generated index ↵Raimonds Simanovskis2010-06-041-12/+10
| | | | names, some additional tests now pass
* Reduced size of table name prefix and suffix in migrations test as in Oracle ↵Raimonds Simanovskis2010-06-041-3/+4
| | | | identifier name cannot be larger than 30 characters
* Final iteration of use better testing methodsNeeraj Singh2010-05-191-1/+1
| | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>