1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 # Be sure to restart your server when you modify this file.
7 # This file contains migration options to ease your Rails 5.0 upgrade.
9 # Once upgraded flip defaults one by one to migrate to the new default.
11 # Read the Guide for Upgrading Ruby on Rails for more info on each option.
13 Rails.application.config.action_controller.raise_on_unfiltered_parameters = true
15 # Enable per-form CSRF tokens. Previous versions had false.
16 Rails.application.config.action_controller.per_form_csrf_tokens = false
18 # Enable origin-checking CSRF mitigation. Previous versions had false.
19 Rails.application.config.action_controller.forgery_protection_origin_check = false
21 # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
22 # Previous versions had false.
23 ActiveSupport.to_time_preserves_timezone = false
25 # Require `belongs_to` associations by default. Previous versions had false.
26 Rails.application.config.active_record.belongs_to_required_by_default = false