diff --git a/app/models/sync/model/audit.rb b/app/models/sync/model/audit.rb index 479ec04..2cd9841 100644 --- a/app/models/sync/model/audit.rb +++ b/app/models/sync/model/audit.rb @@ -14,17 +14,17 @@ module Model::Audit belongs_to :operator, polymorphic: true, optional: true belongs_to :destined - enum state: { + enum :state, { init: 'init', applied: 'applied', finished: 'finished' - }, _default: 'init' + }, default: 'init' - enum operation: { + enum :operation, { update: 'update', delete: 'delete', insert: 'insert' - }, _prefix: true + }, prefix: true end def apply_changes diff --git a/lib/rails_sync.rb b/lib/rails_sync.rb index a18cb88..a8d6714 100644 --- a/lib/rails_sync.rb +++ b/lib/rails_sync.rb @@ -1,6 +1,4 @@ require 'rails_sync/engine' -require 'rails_sync/config' - require 'rails_sync/active_record' require 'rails_sync/adapter' diff --git a/test/dummy b/test/dummy index 3ab5cfb..67a13fa 160000 --- a/test/dummy +++ b/test/dummy @@ -1 +1 @@ -Subproject commit 3ab5cfbc9c15c7e5adc8bfa5325e749c4a0cffcd +Subproject commit 67a13faa554fb96f06175a9190541cf4fc2c6fb2