fix augment_type enum conflict with ActiveRecord none method
This commit is contained in:
parent
c6d117fc09
commit
53cb15fa27
2 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ class WeaponSeries < ApplicationRecord
|
|||
has_many :weapon_key_series, dependent: :destroy
|
||||
has_many :weapon_keys, through: :weapon_key_series
|
||||
|
||||
enum :augment_type, { none: 0, ax: 1, befoulment: 2 }, default: :none
|
||||
enum :augment_type, { no_augment: 0, ax: 1, befoulment: 2 }, default: :no_augment
|
||||
|
||||
validates :name_en, presence: true
|
||||
validates :name_jp, presence: true
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ FactoryBot.define do
|
|||
element_changeable { false }
|
||||
has_weapon_keys { false }
|
||||
has_awakening { false }
|
||||
augment_type { :none }
|
||||
augment_type { :no_augment }
|
||||
|
||||
trait :gacha do
|
||||
slug { 'gacha' }
|
||||
|
|
|
|||
Loading…
Reference in a new issue