w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
  • Bulletin
  • Posts
doc_ruby_on_rails
doc_ruby_on_rails


remove_connection

remove_connection(klass = self) Instance Public methods

fake_connection

fake_connection(config) Instance Public methods

establish_connection

establish_connection(spec = nil) Instance Public methods Establishes the connection to the database. Accepts a hash as input where the :adapter key must be specified with the name of a database adapter (in lower-case) example for regular databases (MySQL, Postgresql, etc): ActiveRecord::Base.establish_connection( adapter: "mysql", host: "localhost", username: "myuser", password: "mypass", database: "somedatabase" ) Example for SQLite database: ActiveRecord::Base.est

connection_pool

connection_pool() Instance Public methods

connection_id=

connection_id=(connection_id) Instance Public methods

connection_id

connection_id() Instance Public methods

connection_config

connection_config() Instance Public methods Returns the configuration of the associated connection as a hash: ActiveRecord::Base.connection_config # => {pool: 5, timeout: 5000, database: "db/development.sqlite3", adapter: "sqlite3"} Please use only for reading.

connection

connection() Instance Public methods Returns the connection currently associated with the class. This can also be used to âborrowâ the connection to do database work unrelated to any of the specific Active Records.

connected?

connected?() Instance Public methods Returns true if Active Record is connected.

test_quoted_time_utc

test_quoted_time_utc() Instance Public methods

Page 208 of 2275

|< < Prev 205 206 207 208 209 210 211 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions