You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require'active_record'defdb_configurationdb_configuration_file=File.join(File.expand_path('..',__FILE__),'..','db','config.yml')YAML.load(File.read(db_configuration_file))endActiveRecord::Base.establish_connection(db_configuration["development"])require_relative'../models/my_model.rb'MyModel.first# pause...# ActiveRecord::ConnectionTimeoutError (could not obtain a connection from the pool within 5.000 seconds (waited 5.001 seconds); all pooled connections were in use)
If discussion here comes up with some recommendations I'll make a PR for the readme.
Thanks!
The text was updated successfully, but these errors were encountered:
Thanks for this great project!
I've started tinkering with it and I can't seem to come up with the basic code needed to use ActiveRecord models.
Running migrations, creating database and tables, and generating schema.rb all went smoothly. Then, this code fails:
If discussion here comes up with some recommendations I'll make a PR for the readme.
Thanks!
The text was updated successfully, but these errors were encountered: