move abstract_class after state machine

This commit is contained in:
Denny Mueller 2019-04-23 18:33:47 +02:00 committed by Anil Kumar Maurya
parent b7342f8243
commit 05a0f37e0f
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,4 @@
class Base < ActiveRecord::Base
self.abstract_class = true
self.table_name = 'users'
include AASM
aasm column: 'status' do
@ -16,6 +13,9 @@ class Base < ActiveRecord::Base
transitions from: :active, to: :inactive
end
end
self.abstract_class = true
self.table_name = 'users'
end