Search
 
SCRIPT & CODE EXAMPLE
 

RUBY

How to find database name in rails console

ActiveRecord::Base.connection.current_database
Comment

rails get current database name

Rails.configuration.database_configuration["development"]["database"]
Comment

PREVIOUS NEXT
Code Example
Ruby :: how to decrypt credentials in rails 
Ruby :: get current year in ruby 
Ruby :: how to check ruby version 
Ruby :: ruby constructor 
Ruby :: rails task arguments 
Ruby :: ruby check if block given 
Ruby :: rails g model references 
Ruby :: activerecord less than 
Ruby :: substring replace in ruby 
Ruby :: rails update without validation 
Ruby :: ruby each_with_object 
Ruby :: how to create a database in production mode rails 
Ruby :: how to delete database in rails 
Ruby :: ruby match word in string 
Ruby :: ruby global variable 
Ruby :: ruby prepend array 
Ruby :: rails rescue puts error 
Ruby :: ruby create engine using rspec and dummy 
Ruby :: rails helper in controller 
Ruby :: text_field_tag placeholder rails 
Ruby :: how to destroy a generate in rails 
Ruby :: ruby on rails binding.pry 
Ruby :: ruby reduce hash 
Ruby :: ruby function arguments 
Ruby :: sentry send error manually ruby 
Ruby :: ruby named parameters 
Ruby :: rails check test database 
Ruby :: ruby puts object 
Ruby :: how to access active record elements in ruby 
Ruby :: In Jekyll - get the parent url path of a collection 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =