lib/penthouse/tenants/migratable.rb in penthouse-0.10.0 vs lib/penthouse/tenants/migratable.rb in penthouse-0.10.1

- old
+ new

@@ -14,10 +14,15 @@ # @param db_schema_file [String] a path to the DB schema file to load, defaults to Penthouse.configuration.db_schema_file # @return [void] def migrate(db_schema_file: Penthouse.configuration.db_schema_file) if File.exist?(db_schema_file) # run the migrations within this schema - call { load(db_schema_file) } + call do + # don't output all the log messages + ActiveRecord::Schema.verbose = false + # run the schema file to migrate this tenant + load(db_schema_file) + end else raise ArgumentError, "#{db_schema_file} does not exist" end end