Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Abstract model connects to database
- # Models for this database will inherit this class
- class Master < ActiveRecord::Base
- self.abstract_class = true
- self.establish_connection(
- :adapter => "mysql",
- :host => "example.com",
- :username => "root",
- :password => "",
- :database => "master"
- )
- end
Add Comment
Please, Sign In to add comment