diff options
Diffstat (limited to 'db/migrate/20210312174321_add_enforced_git_check_to_saml_provider.rb')
-rw-r--r-- | db/migrate/20210312174321_add_enforced_git_check_to_saml_provider.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20210312174321_add_enforced_git_check_to_saml_provider.rb b/db/migrate/20210312174321_add_enforced_git_check_to_saml_provider.rb new file mode 100644 index 00000000000..89553a53084 --- /dev/null +++ b/db/migrate/20210312174321_add_enforced_git_check_to_saml_provider.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class AddEnforcedGitCheckToSamlProvider < ActiveRecord::Migration[6.0] + DOWNTIME = false + + def up + add_column :saml_providers, :git_check_enforced, :boolean, default: false, null: false + end + + def down + remove_column :saml_providers, :git_check_enforced + end +end |