Skip to content

Commit 355e2b9

Browse files
committed
chore: fix validation record to avoid schema conflict
1 parent f481126 commit 355e2b9

5 files changed

Lines changed: 365 additions & 258 deletions

File tree

app/models/application_record.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationRecord < ActiveRecord::Base
2+
primary_abstract_class
3+
end

app/models/organization.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Organization < ApplicationRecord
1414
validates :slug, presence: true, uniqueness: true, length: { maximum: 100 }
1515
validates :region, presence: true, inclusion: { in: %w[BR NA EUW KR EUNE EUW1 LAN LAS OCE RU TR JP] }
1616
validates :tier, inclusion: { in: %w[amateur semi_pro professional] }, allow_blank: true
17-
validates :subscription_plan, inclusion: { in: %w[free basic pro enterprise] }, allow_blank: true
17+
validates :subscription_plan, inclusion: { in: %w[free amateur semi_pro professional enterprise] }, allow_blank: true
1818
validates :subscription_status, inclusion: { in: %w[active inactive trial expired] }, allow_blank: true
1919

2020
# Callbacks

0 commit comments

Comments
 (0)