标签: ruby-on-rails ruby ruby-on-rails-3 rails-postgresql pg
使用
@change_stat = Notification.where("fb_id = ? AND active = ?",@current_user.fb_id,true) @change_stat.update_all(:active => false)