Commit 33b80260 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'migrate_session_expire_delay_unless_it_exists' into 'master'

Check if session_expire_delay column exists before adding the column.

Fixes #2052 

Fixes #1985

See merge request !1029
parents 95d89e44 6e08e7aa
class AddSessionExpireDelayForApplicationSettings < ActiveRecord::Migration class AddSessionExpireDelayForApplicationSettings < ActiveRecord::Migration
def change def change
add_column :application_settings, :session_expire_delay, :integer, default: 10080, null: false unless column_exists?(:application_settings, :session_expire_delay)
add_column :application_settings, :session_expire_delay, :integer, default: 10080, null: false
end
end end
end end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment