lib/archer/history.rb in archer-rails-0.4.1 vs lib/archer/history.rb in archer-rails-1.0.0
- old
+ new
@@ -1,5 +1,11 @@
module Archer
class History < ActiveRecord::Base
self.table_name = "archer_history"
+
+ if ActiveRecord::VERSION::STRING.to_f >= 7.1
+ serialize :commands, coder: Coder
+ else
+ serialize :commands, Coder
+ end
end
end