lib/schema_dev/rspec/db.rb in schema_dev-3.3.0 vs lib/schema_dev/rspec/db.rb in schema_dev-3.4.0

- old
+ new

@@ -78,12 +78,12 @@ ActiveRecord::Base.connection.execute "PRAGMA synchronous = OFF" end end def set_logger - ruby = "#{RUBY_ENGINE}-#{RUBY_VERSION}" - activerecord = "activerecord-#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}" - ActiveRecord::Base.logger = Logger.new(logroot.join("#{ruby}.#{activerecord}.#{@db}.log").open("w")) + ruby = "#{RUBY_ENGINE}#{RUBY_VERSION}" + activerecord = "activerecord#{ActiveRecord.version}" + ActiveRecord::Base.logger = Logger.new(logroot.join("#{ruby}-#{activerecord}-#{@db}.log").open("w")) end module Helpers extend self