3 ms·
No. ActiveRecord checks for constraints on top of what the database offers. You are free to specify database constraints if you like. In older versions of Activ
by FooBarWidget 13y ago
No. ActiveRecord checks for constraints on top of what the database offers. You are free to specify database constraints if you like. In older versions of ActiveRecord, uniqueness errors generate a generic database exception. In recent versions, uniqueness errors generate the specific exception RecordNotUnique.