Guest User

Untitled

a guest
Jul 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. class DoSomeVoodooWithSomeModel < ActiveRecord::Migration
  2.  
  3. #this model will be used, not the one in app/models
  4. #The User class is really a DoSomeVoodooWithSomeModel::User, that's the magic really
  5. class User < ActiveRecord::Base; end
  6.  
  7. def self.up
  8. #whatever
  9. User.find(:first_name => "Ray")
  10. end
  11.  
  12. def self.down
  13. end
  14. end
Add Comment
Please, Sign In to add comment