Sachin Singh
Sachin Singh

Reputation: 7225

what happens to database connection created by rake task while loading rails environment?

A rake task loads application environment each time when it runs and therefore creates database connection, what happens to these connections after its execution is over? Please explain and suggest.

Upvotes: 0

Views: 94

Answers (1)

Dharam Gollapudi
Dharam Gollapudi

Reputation: 6438

The same thing that happens when you shutdown the rails server and rails console etc. They get disconnected.

Upvotes: 1

Related Questions