aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration.rb
Commit message (Collapse)AuthorAgeFilesLines
* Allow to filter migrations by passing a blockPiotr Sarnacki2011-12-091-9/+13
| | | | | | | | | | Example: ActiveRecord::Migrator.migrate(path) do |migration| migration.name =~ /User/ end The above example will migrate only migrations with User in the name
* Compare migrations for copying only by name and scopePiotr Sarnacki2011-12-091-22/+6
|
* Add suffix for migrations copied from enginesPiotr Sarnacki2011-12-091-5/+5
|
* String#to_a is not available in 1.9Piotr Sarnacki2011-12-091-1/+1
|
* Run also migrations in subdirectories.Piotr Sarnacki2011-12-091-2/+3
| | | | | With this commit, ActiveRecord will also look for migrations in db/migrate subdirectories.
* Ignore origin comment when checking for duplicates on Migration.copyPiotr Sarnacki2011-12-091-2/+20
| | | | | | | 49ebe51 fixed copying migrations, but existing migrations would still trigger warnings. The proper way to compare migrations is to ignore origin lines - if migration is identical it means that we can silently skip it, regardless where it comes from.
* Fix copying migrations from enginesPiotr Sarnacki2011-12-091-3/+3
| | | | | | | | | | There was a bug in ActiveRecord::Migration.copy method, which prevented adding special comment about the origin of migration. Because of that, the check if migration is identical or if it's not and should be skipped was always saying that migration is skipped, which was causing additional useless warnings about skipped migrations.
* reversible migration example had missing block parameterEvgeniy Kelyarsky2011-12-071-1/+1
|
* add prefix and suffix to renamed tables, closes #1510Vasiliy Ermolovich2011-12-061-0/+1
|
* document fix: remove_column takes multiple column_namesAkira Matsuda2011-11-071-2/+2
|
* AR changes to support creating ordered (asc, desc) indexesVlad Jebelev2011-11-041-2/+3
|
* Make it the responsibility of the connection to hold onto an ARel visitor ↵Jon Leighton2011-08-081-3/+3
| | | | for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.
* add a migrate class method and delegate to the new instanceAaron Patterson2011-08-021-1/+4
|
* Support backwards compatible interface for migration down/up with rails 3.0.x.Christopher Meiklejohn2011-08-021-0/+1
|
* Explicitly require Active Support dependenciesNorman Clarke2011-07-191-0/+2
| | | | | | | | | | | | This fixes errors when using Active Record outside of Rails. In Rails, these files are required by other classes that are always loaded, so this error does not happen. Without core_ext/module/delegation, a NoMethodError is raised because `delegate` remains undefined. Without core_ext/class/attribute_acessors, an ArgumentError is raised because `delegate` does not receive a value for its :to option.
* minor changesVijay Dev2011-06-271-2/+2
|
* replace find(all) with allVijay Dev2011-06-261-3/+3
|
* Update remove_index documentationLucia Escanellas2011-06-171-2/+4
| | | | | * Changes should better reflect present code behavior * Related to issue: https://github.com/rails/rails/issues/1624
* up and down are no longer class methods in a migrationVijay Dev2011-06-071-1/+1
|
* require core_ext/array/wrap in active_record/migrationPiotr Sarnacki2010-12-101-0/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Use Array.wrap instead of using ternaryPiotr Sarnacki2010-12-091-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Allow to run migrations from more than one directoryPiotr Sarnacki2010-12-091-24/+33
|
* in the middle of refactoringAaron Patterson2010-12-031-0/+4
|
* remove calls to deprecated methodsAaron Patterson2010-12-021-1/+2
|
* avoiding deprecated methods in arelAaron Patterson2010-12-021-1/+2
|
* rolling out migrated_at until I can fix the buildAaron Patterson2010-12-011-11/+7
|
* name in schema_migrations, migrations in schema dumpJosh Susser2010-12-011-0/+1
|
* record migration timestamp when migrations runJosh Susser2010-12-011-7/+10
|
* adding documentation for reversible migrationsAaron Patterson2010-11-191-0/+32
|
* invertable migrations are workingAaron Patterson2010-11-191-1/+19
|
* partial implementation of the command recorderAaron Patterson2010-11-191-0/+2
|
* this return value is not used, so stop returning itAaron Patterson2010-11-191-4/+1
|
* instantiate the delegate object after initialize is defined so that our ↵Aaron Patterson2010-11-191-3/+4
| | | | initialize method actually gets called
* connection is set from the connection pool during migrationsAaron Patterson2010-11-181-4/+10
|
* adding an initialize with name and version defaultsAaron Patterson2010-11-171-4/+5
|
* fixing more documentationAaron Patterson2010-11-171-3/+3
|
* fixing documentation, removing unused AS filesAaron Patterson2010-11-171-15/+12
|
* fixing indentation since these methods are not class methodsAaron Patterson2010-11-171-83/+83
|
* these methods are no longer neededAaron Patterson2010-11-171-8/+0
|
* do not need these accessorsAaron Patterson2010-11-171-8/+0
|
* testing instance based migrationsAaron Patterson2010-11-171-0/+2
|
* singleton method added is no longer neededAaron Patterson2010-11-171-19/+1
|
* schema migrations work as instancesAaron Patterson2010-11-171-4/+7
|
* converted migrations to support instance methodsAaron Patterson2010-11-171-6/+34
|
* Create directory before copying migrations if it does not existPiotr Sarnacki2010-11-161-0/+2
|
* 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
|