diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2011-12-09 20:07:29 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2011-12-09 21:43:36 +0100 |
commit | f0b782d060f76647e36adc40fe5fe818ec8e2c66 (patch) | |
tree | daaa633c3b8d17eaa84a7418379f76d1762eed2b /railties/test/application/initializers | |
parent | ab30570b69e6118bbfbd8dfaa7577668b34e5eaf (diff) | |
download | rails-f0b782d060f76647e36adc40fe5fe818ec8e2c66.tar.gz rails-f0b782d060f76647e36adc40fe5fe818ec8e2c66.tar.bz2 rails-f0b782d060f76647e36adc40fe5fe818ec8e2c66.zip |
Allow to filter migrations by passing a block
Example:
ActiveRecord::Migrator.migrate(path) do |migration|
migration.name =~ /User/
end
The above example will migrate only migrations with User in
the name
Diffstat (limited to 'railties/test/application/initializers')
0 files changed, 0 insertions, 0 deletions