config/initializers/observers.rb in skylinecms-3.1.0 vs config/initializers/observers.rb in skylinecms-3.2.0
- old
+ new
@@ -1,4 +1,6 @@
-ActiveRecord::Base.observers = [
- "Skyline::FileCacheSweeper",
- "Skyline::ArticleVersionObserver"
-]
+unless ( File.basename($0) == "rake" && ARGV.include?("skyline:db:migrate") )
+ ActiveRecord::Base.observers = [
+ "Skyline::FileCacheSweeper",
+ "Skyline::ArticleVersionObserver"
+ ]
+end
\ No newline at end of file