Make it work with mass protection enabled (for Rails 3)
Make it work with Rails 3: ActiveRecord::SchemaMigration model only exists in Rails 4
Support for Rails 3