forked from fixin.me/fixin.me
Set multiplier default in db, not model
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
class Unit < ApplicationRecord
|
||||
attribute :multiplier, default: 1
|
||||
|
||||
belongs_to :user, optional: true
|
||||
# TODO: validate base.user == user
|
||||
belongs_to :base, optional: true, class_name: "Unit"
|
||||
|
||||
Reference in New Issue
Block a user