membership = Membership.where(user_id: 1, group_id: 1).first
# some other code
membership.update_attributes(admin: true)
生成查询
UPDATE 'memberships' SET 'admin' = 1 WHERE 'memberships'.'' IS NULL
这会导致错误。
membership = Membership.where(user_id: 1, group_id: 1).first
# some other code
membership.update_attributes(admin: true)
生成查询
UPDATE 'memberships' SET 'admin' = 1 WHERE 'memberships'.'' IS NULL
这会导致错误。