Skip to content

Commit

Permalink
testy
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jun 13, 2024
1 parent 6458d46 commit a71b807
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions app/models/sync/model/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions lib/rails_sync.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require 'rails_sync/engine'
require 'rails_sync/config'

require 'rails_sync/active_record'
require 'rails_sync/adapter'

Expand Down

0 comments on commit a71b807

Please sign in to comment.