We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c2ac7f commit bcb20baCopy full SHA for bcb20ba
lib/casserver/server.rb
@@ -228,6 +228,12 @@ def self.init_logger!
228
def self.init_database!
229
#CASServer::Model::Base.establish_connection(config[:database])
230
ActiveRecord::Base.establish_connection(config[:database])
231
+
232
+ print_cli_message "Running migrations to make sure your database schema is up to date..."
233
+ ActiveRecord::Base.logger = Logger.new(STDOUT)
234
+ ActiveRecord::Migration.verbose = true
235
+ ActiveRecord::Migrator.migrate(File.dirname(__FILE__) + "/../../db/migrate")
236
+ print_cli_message "Your database is now up to date."
237
end
238
239
configure do
0 commit comments