Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

switching migrations to use require cleans up many warnings [#4234 st…

…ate:resolved]

Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information...
commit 541194f641c960efe739b16f76999f47742d12ba 1 parent ae499b5
Aaron Patterson tenderlove authored wycats committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/migration.rb
2  activerecord/lib/active_record/migration.rb
View
@@ -374,7 +374,7 @@ def migration
end
def load_migration
- load(filename)
+ require(filename)
name.constantize
end

3 comments on commit 541194f

Eric Koslow

This seemed to break my rails build when I try to migrate. It now points to db/migrate//XXX instead of db/migrate/ . This feature was working until I ran bundle install and grabbed this.

Eric Koslow

To verify, I just changed the code back to load(filename) and it worked.

Kieran Pilkington

This is not the best place to put bug reports. Create a ticket at https://rails.lighthouseapp.com/projects/8994-ruby-on-rails and reference this commit.

Please sign in to comment.
Something went wrong with that request. Please try again.