Rails rollback when creating user with nested forms
问题 I'm getting a rollback when trying to add a user to my DB and I'm not sure why. I have three models: company.rb class Company < ActiveRecord::Base acts_as_paranoid has_many :locations, dependent: :destroy has_many :users, dependent: :destroy has_many :tests, through: :locations has_many :reports, dependent: :destroy accepts_nested_attributes_for :locations, :users validates_presence_of :name end ** user.rb ** class User < ActiveRecord::Base acts_as_paranoid devise :database_authenticatable,