aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Donnet2017-12-06 14:12:14 +0100
committerLuc Donnet2017-12-06 14:12:14 +0100
commitaf709926b6fac4fce22345a34fdf57de5b4d6cbf (patch)
treec82807e77531d837da2945a38b0fa504f9275afd
parentb2ebf66d8297d7e253c83f2c5947f21008769748 (diff)
downloadchouette-core-af709926b6fac4fce22345a34fdf57de5b4d6cbf.tar.bz2
Fix log to detect schema migrations overwrite
-rw-r--r--app/models/referential.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/referential.rb b/app/models/referential.rb
index 5f0f44bee..29efaa609 100644
--- a/app/models/referential.rb
+++ b/app/models/referential.rb
@@ -288,8 +288,8 @@ class Referential < ActiveRecord::Base
def create_schema
unless created_from
Apartment::Tenant.create slug
+ Rails.logger.error( "Schema migrations count for Referential #{slug} " + Referential.connection.select_value("select count(*) from #{slug}.schema_migrations;").to_s )
end
- Rails.logger.error( "Schema migrations count for Referential #{slug} " + Referential.connection.select_value("select count(*) from #{slug}.schema_migrations;").to_s )
end
def assign_slug