Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个帐户模型,它为每个帐户创建一个数据库。在创建它之前,我需要验证是否没有另一个同名的数据库。
我怎么能做这样的验证?我在 ActiveRecord::Base.connection 中找不到任何方法。
谢谢。