Add default value for points_count attribute

This commit is contained in:
Eugene Burmakin
2025-08-29 10:07:00 +02:00
parent 2020979b83
commit 9856ab56c6

View File

@@ -26,6 +26,7 @@ class User < ApplicationRecord # rubocop:disable Metrics/ClassLength
validates :reset_password_token, uniqueness: true, allow_nil: true
attribute :admin, :boolean, default: false
attribute :points_count, :integer, default: 0
enum :status, { inactive: 0, active: 1, trial: 2 }