make upgrading from 1.0 easier

This commit is contained in:
Joshua Arts
2018-07-05 17:25:59 -04:00
parent fd1b550f93
commit e2ad6e7715
12 changed files with 51 additions and 23 deletions

View File

@ -5,6 +5,13 @@ require 'bigbluebutton_api'
class ApplicationController < ActionController::Base
include SessionsHelper
before_action :migration_error?
# Show an information page when migration fails and there is a version error.
def migration_error?
render :migration_error unless ENV["DB_MIGRATE_FAILED"].blank?
end
protect_from_forgery with: :exception
MEETING_NAME_LIMIT = 90