I have an account model which creates one database for each account. Before creating it, i need to validate if there isn't another database with the same name.
How can i do such validation? I can't find any method in ActiveRecord::Base.connection.
Thanks.