Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix usage examples and more to use new invocations | RomD | 2010-02-06 | 1 | -2/+2 |
| | | | | Signed-off-by: Carl Lerche <carllerche@mac.com> | ||||
* | fixed migration logger bug [#3434 status:resolved] | Corey Johnson | 2010-02-02 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Merge docrails | Pratik Naik | 2010-01-17 | 1 | -1/+2 |
| | |||||
* | Allow AR::Schema's migrations_path to be overwritten by subclasses. Defaults ↵ | Jeffrey Hardy | 2010-01-08 | 1 | -0/+4 |
| | | | | | | | | to 'db/migrate' [#3671 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Revert "Remove connection method definition, since it's called just once." | Jeremy Kemper | 2010-01-07 | 1 | -1/+5 |
| | | | | | | Restore the connection method which was added so it can be overridden. This reverts commit e428c75d2b67c6a7bd5f5e7e1719cdece84d497f. | ||||
* | Merge commit 'rails/master' | Emilio Tagua | 2009-08-10 | 1 | -14/+15 |
|\ | | | | | | | | | Conflicts: activerecord/lib/active_record/migration.rb | ||||
| * | DRY migration's rollback/forward methods | Pratik Naik | 2009-08-08 | 1 | -14/+15 |
| | | |||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-08-08 | 1 | -0/+10 |
|\| | | | | | | | | | | | Conflicts: activerecord/test/cases/adapter_test.rb activerecord/test/cases/method_scoping_test.rb | ||||
| * | Add rake db:forward - opposite of db:rollback [#768 state:resolved] | Cristi Balan | 2009-08-08 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | Example: rake db:forward # performs the next migration rake db:forward STEP=4 # performs the next 4 migrations Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-07-31 | 1 | -3/+3 |
|\| | | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb | ||||
| * | Merge docrails | Pratik Naik | 2009-07-25 | 1 | -3/+3 |
| | | |||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-06-16 | 1 | -2/+3 |
|\| | |||||
| * | uses Object#metaclass and Object#class_eval in a few spots | Xavier Noria | 2009-06-12 | 1 | -2/+3 |
| | | | | | | | | | | | | [#2797 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | | No need to specify the engine now that it is in active_record.rb | Emilio Tagua | 2009-06-02 | 1 | -2/+2 |
| | | |||||
* | | Refactors to work with latest Arel implementation. | Emilio Tagua | 2009-06-02 | 1 | -2/+2 |
| | | |||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-05-18 | 1 | -5/+5 |
|\| | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/base.rb activerecord/lib/active_record/migration.rb activerecord/test/cases/helper.rb | ||||
| * | Cherry-pick core extensions | Jeremy Kemper | 2009-05-13 | 1 | -5/+5 |
| | | |||||
* | | Refactor to calculations. Migration's versions are string not integer. ARel ↵ | Emilio Tagua | 2009-05-06 | 1 | -5/+5 |
| | | | | | | | | submodule updated. | ||||
* | | Remove connection method definition, since it's called just once. | Emilio Tagua | 2009-04-23 | 1 | -5/+1 |
| | | |||||
* | | More progress on migrations. Arel updated. | Emilio Tagua | 2009-04-23 | 1 | -1/+2 |
| | | |||||
* | | Added Arel integration to migration's version update table | Emilio Tagua | 2009-04-23 | 1 | -25/+25 |
|/ | |||||
* | Migrations: make default database connection overridable | Jeremy Kemper | 2009-02-04 | 1 | -1/+5 |
| | |||||
* | Merge with docrails | Pratik Naik | 2008-12-07 | 1 | -1/+3 |
| | |||||
* | Back to fetching all versions in ruby instead of letting SQL do it as it's ↵ | Tarmo Tänav | 2008-08-26 | 1 | -5/+6 |
| | | | | | | difficult to get all databases to convert the text value to a number with the same SQL Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Use DECIMAL instead of INTEGER when casting as mysql doesn't work with just ↵ | Tarmo Tänav | 2008-08-25 | 1 | -3/+8 |
| | | | | | | | | "INTEGER" and other databases don't like "UNSIGNED" which mysql requires And don't mask exceptions. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Cache migrated versions list in Migrator and use it to fetch the latest ↵ | Tarmo Tänav | 2008-08-25 | 1 | -6/+8 |
| | | | | | | | | | | | | migrated version name [#845 state:resolved] Also optimized Migrator#current_version class method to fetch only the latest version number and not all of them. With this change no matter how many migrations there are the schema_migrations table is only SELECTed from once. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Made migrations transactional for PostgreSQL [#834 state:resolved] | Tarmo Tänav | 2008-08-22 | 1 | -4/+21 |
| | | | | Patch originally from http://dev.rubyonrails.org/ticket/5470 | ||||
* | Added MigrationProxy to defer loading of Migration classes until they are ↵ | Nik Wakelin | 2008-08-06 | 1 | -6/+26 |
| | | | | | | | actually required by the migrator Signed-off-by: Michael Koziarski <michael@koziarski.com> [#747 state:resolved] | ||||
* | Set config.active_record.timestamped_migrations = false to have migrations ↵ | Nik Wakelin | 2008-07-17 | 1 | -0/+16 |
| | | | | | | with numeric prefix instead of UTC timestamp. [#446 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | ActiveRecord::Migrator#run records version-state after migrating. [#369 ↵ | Michael Raidel | 2008-06-22 | 1 | -1/+4 |
| | | | | state:resolved] | ||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 1 | -2/+2 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Added protection against duplicate migration names (Aslak Hellesøy) [#112 ↵ | Aslak Hellesøy | 2008-05-11 | 1 | -0/+10 |
| | | | | state:resolved] | ||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -4/+4 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Fix migrations when migrating to a specified version number with a fresh ↵ | Ian White | 2008-04-17 | 1 | -2/+4 |
| | | | | | | database [#1 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Add support for interleaving migrations by storing which migrations have run ↵ | Rick Olson | 2008-04-09 | 1 | -29/+54 |
| | | | | | | in the new schema_migrations table. Closes #11493 [jordi] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix new migration versions | David Heinemeier Hansson | 2008-03-28 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Switched to UTC-timebased version numbers for migrations and the schema. ↵ | David Heinemeier Hansson | 2008-03-28 | 1 | -61/+87 |
| | | | | | | This will as good as eliminate the problem of multiple migrations getting the same version assigned in different branches. Also added rake db:migrate:up/down to apply individual migrations that may need to be run when you merge branches (closes #11458) [jbarnette] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improve documentation. | Pratik Naik | 2008-03-26 | 1 | -2/+19 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ruby 1.9 compat: fix warnings, shadowed block vars, and unitialized instance ↵ | Jeremy Kemper | 2007-12-22 | 1 | -5/+4 |
| | | | | | | vars git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | The test task stops with a warning if you have pending migrations. Closes ↵ | Jeremy Kemper | 2007-12-06 | 1 | -0/+4 |
| | | | | | | #10377. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improve documentation for IrreversibleMigrations. Closes #9636 [toolmantim] | Michael Koziarski | 2007-11-11 | 1 | -3/+3 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Smattering of grammatical fixes to documentation. Closes #10083 [BobSilva] | Marcel Molina | 2007-11-08 | 1 | -6/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Update add_index documentation to use new options api. Closes #9787 [kamal] | Marcel Molina | 2007-10-26 | 1 | -1/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8031 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Raise an intelligible error message when migration aren't named correctly ↵ | Michael Koziarski | 2007-10-17 | 1 | -1/+9 |
| | | | | | | [bronson] Closes #9909 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7957 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Change Migration documentation to use the new syntax. Closes #9813 [sjgman9] | Michael Koziarski | 2007-10-08 | 1 | -5/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7788 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed that using version-targetted migrates would fail on loggers other than ↵ | David Heinemeier Hansson | 2007-09-22 | 1 | -1/+5 |
| | | | | | | the default one (closes #7430) [valeksenko] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Docfix (closes #7593) [tarmo] | David Heinemeier Hansson | 2007-09-22 | 1 | -2/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Migrations: report the number of rows affected when calling insert, update, ↵ | Jeremy Kemper | 2007-06-05 | 1 | -0/+1 |
| | | | | | | delete, etc. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6945 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Announce migration versions as they're performed. | Jeremy Kemper | 2007-05-26 | 1 | -35/+41 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Migration benchmark wrappers use alias_method_chain. Closes #6456. | Jeremy Kemper | 2006-11-19 | 1 | -5/+4 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |