Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DoSomeVoodooWithSomeModel < ActiveRecord::Migration
- #this model will be used, not the one in app/models
- #The User class is really a DoSomeVoodooWithSomeModel::User, that's the magic really
- class User < ActiveRecord::Base; end
- def self.up
- #whatever
- User.find(:first_name => "Ray")
- end
- def self.down
- end
- end
Add Comment
Please, Sign In to add comment