OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/db/migrate/20210331085058_migrate_sess...

14 lines
347 B

class MigrateSessionsUnlogged < ActiveRecord::Migration[6.1]
def change
truncate :sessions
# Set the table to unlogged
execute <<~SQL
ALTER TABLE "sessions" SET UNLOGGED
SQL
# We don't need the created at column
# that now no longer is set by rails
remove_column :sessions, :created_at, null: false
end
end