spec/dummy/app/models/foo.rb in oh_my_log-1.0.2 vs spec/dummy/app/models/foo.rb in oh_my_log-1.0.3
- old
+ new
@@ -1,6 +1,12 @@
class Foo < ApplicationRecord
+ if OHMYLOG_ORM == :mongoid
+ include Mongoid::Document
+ field :name, type: String
+ field :value, type: Integer
+ include ::Mongoid::Timestamps
+ end
end
\ No newline at end of file