aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add callback on skipped migration while copying migrationsPiotr Sarnacki2010-10-091-7/+20
|
* Change the method for copying migrations, do not add scope.Piotr Sarnacki2010-10-091-9/+9
| | | | | | | 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.
* converting inject([]) to mapAaron Patterson2010-10-031-4/+3
|
* speed up duplicate migration detectionAaron Patterson2010-10-031-6/+5
|
* reduce the number of calls to camelizeAaron Patterson2010-10-031-3/+4
|
* convertion MigrationProxy to a Struct, initialize instance variablesAaron Patterson2010-10-031-7/+6
|
* dry up some migration logicAaron Patterson2010-10-031-2/+4
|
* no need to differentiate between nil and false in this caseAaron Patterson2010-10-031-2/+2
|
* Fix copying migrations to empty directoryPiotr Sarnacki2010-09-031-1/+1
|
* Implemented ActiveRecord::Migrations#copy based on James Adam's ideaPiotr Sarnacki2010-09-031-25/+61
| | | | | | | | | | | | | | | 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
* Added Rails.application.config.paths.db.migrate to remove hardcoded ↵Piotr Sarnacki2010-09-031-4/+6
| | | | db/migrate paths
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-021-1/+0
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-021-0/+1
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-33/+33
| | | | 's/[ \t]*$//' -i {} \;)
* Removing most of the symbol to proc usage in Active RecordPrem Sichanugrist2010-08-131-3/+3
| | | | This will hopefully make Active Record run a bit more faster.
* Fixed many references to the old config/environment.rb and Rails::InitializerBenjamin Quorning2010-07-131-1/+1
|
* migrations.rb requires active_support/core_ext/module/aliasing [#5008 ↵Tekin2010-06-301-0/+1
| | | | | | state:committed] Signed-off-by: Xavier Noria <fxn@hashref.com>
* Revert "Guides: Add :references to supported column types."rohit2010-06-241-1/+1
| | | | This reverts commit 41ed4db560bf50e0ccb99915a03c37d39bff135b.
* Guides: Add :references to supported column types.rohit2010-06-241-1/+1
|
* Adds title and minor changes.Rizwan Reza2010-06-161-1/+1
|
* Adds title.Rizwan Reza2010-06-151-36/+62
|
* making rake:migrate VERSION=0 a noop called in succession. [#2137 ↵Neeraj Singh2010-04-291-3/+7
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* moves Object#singleton_class to Kernel#singleton_class to match Ruby also ↵Xavier Noria2010-04-051-1/+1
| | | | there, same for #class_eval to simplify, and adds coverage for class_eval
* expand migration paths before requiring them. [#4240 state:resolved]Aaron Patterson2010-03-231-1/+1
| | | | Signed-off-by: wycats <wycats@gmail.com>
* switching migrations to use require cleans up many warnings [#4234 ↵Aaron Patterson2010-03-191-1/+1
| | | | | | state:resolved] Signed-off-by: wycats <wycats@gmail.com>
* cleaning up many more warnings in activerecord [#4180 state:resolved]Aaron Patterson2010-03-151-1/+3
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.Jeremy Kemper2010-02-251-2/+2
|
* fix usage examples and more to use new invocationsRomD2010-02-061-2/+2
| | | | Signed-off-by: Carl Lerche <carllerche@mac.com>
* fixed migration logger bug [#3434 status:resolved]Corey Johnson2010-02-021-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge docrailsPratik Naik2010-01-171-1/+2
|
* Allow AR::Schema's migrations_path to be overwritten by subclasses. Defaults ↵Jeffrey Hardy2010-01-081-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 Kemper2010-01-071-1/+5
| | | | | | Restore the connection method which was added so it can be overridden. This reverts commit e428c75d2b67c6a7bd5f5e7e1719cdece84d497f.
* Merge commit 'rails/master'Emilio Tagua2009-08-101-14/+15
|\ | | | | | | | | Conflicts: activerecord/lib/active_record/migration.rb
| * DRY migration's rollback/forward methodsPratik Naik2009-08-081-14/+15
| |
* | Merge commit 'rails/master'Emilio Tagua2009-08-081-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 Balan2009-08-081-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 Tagua2009-07-311-3/+3
|\| | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb
| * Merge docrailsPratik Naik2009-07-251-3/+3
| |
* | Merge commit 'rails/master'Emilio Tagua2009-06-161-2/+3
|\|
| * uses Object#metaclass and Object#class_eval in a few spotsXavier Noria2009-06-121-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.rbEmilio Tagua2009-06-021-2/+2
| |
* | Refactors to work with latest Arel implementation.Emilio Tagua2009-06-021-2/+2
| |
* | Merge commit 'rails/master'Emilio Tagua2009-05-181-5/+5
|\| | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/base.rb activerecord/lib/active_record/migration.rb activerecord/test/cases/helper.rb
| * Cherry-pick core extensionsJeremy Kemper2009-05-131-5/+5
| |
* | Refactor to calculations. Migration's versions are string not integer. ARel ↵Emilio Tagua2009-05-061-5/+5
| | | | | | | | submodule updated.
* | Remove connection method definition, since it's called just once.Emilio Tagua2009-04-231-5/+1
| |
* | More progress on migrations. Arel updated.Emilio Tagua2009-04-231-1/+2
| |
* | Added Arel integration to migration's version update tableEmilio Tagua2009-04-231-25/+25
|/
* Migrations: make default database connection overridableJeremy Kemper2009-02-041-1/+5
|
* Merge with docrailsPratik Naik2008-12-071-1/+3
|