Switch branches/tags
Commits on Dec 9, 2011
  1. Allow to run migrations with given scope, with SCOPE=<scope>

    drogus committed Dec 9, 2011
    Scope in migrations can be defined by adding suffix in filename,
    like: Such migration have blog scope.
    Scope is automatically added while copying migrations from engine,
    so if you want to revert all of the migrations from given engine,
    you can just run db:migrate with SCOPE, like:
        rake db:migrate SCOPE=blog
  2. Allow to filter migrations by passing a block

    drogus committed Dec 9, 2011
      ActiveRecord::Migrator.migrate(path) do |migration| =~ /User/
    The above example will migrate only migrations with User in
    the name
  3. Run also migrations in subdirectories.

    drogus committed Dec 9, 2011
    With this commit, ActiveRecord will also look for migrations
    in db/migrate subdirectories.
  4. Ignore origin comment when checking for duplicates on Migration.copy

    drogus committed Dec 9, 2011
    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.
  5. Fix copying migrations from engines

    drogus committed Dec 8, 2011
    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.
Commits on Dec 8, 2011
  1. Move symbolize keys to the inner options as we can assume url_options…

    josevalim committed Dec 8, 2011
    … will be properly symbolized.
  2. fix nodocs

    vijaydev committed Dec 8, 2011
  3. fix comments

    vijaydev committed Dec 8, 2011
  4. minor text change

    vijaydev committed Dec 8, 2011
  5. Remove NilClass whiners feature.

    josevalim committed Dec 8, 2011
    Removing this feature causes boost in performance when using Ruby 1.9.
    Ruby 1.9 started to do implicit conversions using `to_ary` and `to_str`
    in some STDLIB methods (like Array#join). To do such implicit conversions,
    Ruby 1.9 always dispatches the method and rescues the NoMethodError exception
    in case one is raised.
    Therefore, since the whiners feature defined NilClass#method_missing, such
    implicit conversions for nil became much, much slower. In fact, just defining
    NilClass#method_missing (even without the whiners feature) already causes a
    massive slow down. Here is a snippet that shows such slow down:
        require "benchmark"
        Benchmark.realtime { 1_000.times { [nil,nil,nil].join } }
        class NilClass
          def method_missing(*args)
            raise NoMethodError
        Benchmark.realtime { 1_000.times { [nil,nil,nil].join } }
  6. fixing eval'd line numbers.

    tenderlove committed Dec 8, 2011
  7. Merge pull request #3909 from laserlemon/patch-1

    fxn committed Dec 8, 2011
    Add dependency status (a la build status) to the README
  8. Merge pull request #3908 from kennyj/should_use_default_charset

    josevalim committed Dec 8, 2011
    Fix a failure in railties on ruby 1.8.x
  9. Fix testcase an error on ruby 1.8.x.

    kennyj committed Dec 8, 2011
    In Ruby 1.8.x, config.encoding sets $KCODE.
    Therefore, the possible values are UTF8, SJIS, or EUC.
    And, if we set SJIS, we'll has the error. Because some rails sources are written in utf-8 encoding.
  10. Merge pull request #3906 from kennyj/fix_warnings_for_params_wrapper_…

    josevalim committed Dec 8, 2011
    Fix warning for params_wrapper_test.rb