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
I've dropped my DB and then when i try to run rails db:create i got this error:
ActiveRecord::NoDatabaseError: FATAL: database "safetypanel_development" does not exist
/Users/felipehernandez/code/safetypanel/app/models/user.rb:19:in `class:User'
In User.rb:19: validates_uniqueness_to_tenant :dni
To solve the issue I've to comment out that line and then i've run rails db:create withut errors.
The text was updated successfully, but these errors were encountered:
@Elmolesto Could you share the version of Rails you are using, and in user.rb, can you show the first 19 lines?
Does User acts_as_tenant to another model, and does that declaration come before validates_uniqueness_to_tenant ?
I've dropped my DB and then when i try to run
rails db:create
i got this error:ActiveRecord::NoDatabaseError: FATAL: database "safetypanel_development" does not exist
/Users/felipehernandez/code/safetypanel/app/models/user.rb:19:in `class:User'
In User.rb:19:
validates_uniqueness_to_tenant :dni
To solve the issue I've to comment out that line and then i've run
rails db:create
withut errors.The text was updated successfully, but these errors were encountered: