How to use sql db or mysql db. Without defining it in the database.yml
Answer / Rajkumar Gupta
"To connect to a SQL (or MySQL) database without defining it in the database.yml, you can use ActiveRecord::Base.establish_connection method with the appropriate configuration details."
| Is This Answer Correct ? | 0 Yes | 0 No |
difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?
In how many ways you can compare Ruby string?
What things we can define in the model?
What does mri most commonly stand for?
Tell me what is the command to create a migration?
Can you list out the few features of ruby?
Explain ruby ranges. What are the ways to define ranges?
What is the pattern matching operator in ruby?
what is Interpolation in Ruby?
what is the difference between a gem and a plugin in Ruby?
Please explain what is mvc and why do we use it?
How to create a new time instance in Ruby?