Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tasks/db/migrate.rake
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
namespace :db do
desc "bring your CAS server database schema up to date (options CONFIG=/path/to/config.yml)"
desc "bring your CAS server database schema up to date (options CONFIG_FILE=/path/to/config.yml)"
task :migrate do |t|
$:.unshift File.dirname(__FILE__) + "/../../lib"


require 'casserver/authenticators/base'
require 'casserver/server'
CASServer::Model::Ticket.logger = Logger.new(STDOUT)

$LOG = Logger.new(STDOUT)
ActiveRecord::Migration.verbose = true
ActiveRecord::Migrator.migrate("db/migrate")
end
Expand Down