Commit 6e08e7aa authored by Marin Jankovski's avatar Marin Jankovski

Check if session_expire_delay column exists before adding the column.

parent 39dc39e3
class AddSessionExpireDelayForApplicationSettings < ActiveRecord::Migration class AddSessionExpireDelayForApplicationSettings < ActiveRecord::Migration
def change def change
unless column_exists?(:application_settings, :session_expire_delay)
add_column :application_settings, :session_expire_delay, :integer, default: 10080, null: false add_column :application_settings, :session_expire_delay, :integer, default: 10080, null: false
end end
end
end end
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