Go to the root of your rails application and type `script/rails console production` (or leave of production for a dev environment). This will boot into the rails console, where you can run the single command `Setting.set('terms_required', 'false’)`. Or, if you’re more comfortable, you could just run `INSERT INTO settings (name, value, created_at, updated_at) VALUES ('terms_required', 'false', now(), now());` directly in postgres. Note that ‘false’ is intentionally a string. This will change this method to return false:
https://github.com/instructure/canvas-lms/blob/stable/app/models/account.rb#L323.