Permalink
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...
1 parent ae499b5 commit 541194f641c960efe739b16f76999f47742d12ba @tenderlove tenderlove committed with wycats Mar 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/migration.rb
@@ -374,7 +374,7 @@ def migration
end
def load_migration
- load(filename)
+ require(filename)
name.constantize
end

3 comments on commit 541194f

@ekosz
ekosz commented on 541194f Mar 19, 2010

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.

@ekosz
ekosz commented on 541194f Mar 19, 2010

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

@KieranP

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.