Class: Bio::Ucsc::Rn4::DBConnection
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Bio::Ucsc::Rn4::DBConnection
- Includes:
- SafeAttributes
- Defined in:
- lib/bio-ucsc/rn4.rb
Class Method Summary collapse
Class Method Details
.connect ⇒ Object
53 54 55 56 57 58 59 |
# File 'lib/bio-ucsc/rn4.rb', line 53 def self.connect establish_connection({ :adapter => @@db_adapter, :host => @@db_host, :database => @@db_name, :username => @@db_username, :password => @@db_password, }) end |
.default ⇒ Object
46 47 48 49 50 51 |
# File 'lib/bio-ucsc/rn4.rb', line 46 def self.default @@db_adapter = 'mysql' @@db_host = 'genome-mysql.cse.ucsc.edu' @@db_username = 'genome' @@db_password = '' end |