Skip to content

Commit

Permalink
Merge pull request #859 from portagenetwork/aaron/issues/723
Browse files Browse the repository at this point in the history
Drop Sessions Table and Delete `lib/tasks/sessions.rake`
  • Loading branch information
aaronskiba authored Aug 22, 2024
2 parents 209533f + 5361188 commit 4b6e583
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 117 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Changed

- Drop Sessions Table and Delete `lib/tasks/sessions.rake` [#859](https://github.com/portagenetwork/roadmap/pull/859)

### Fixed

- Fix triggering and title of autosent email when a user's admin privileges are changed [#858](https://github.com/portagenetwork/roadmap/pull/858)
Expand Down
11 changes: 11 additions & 0 deletions db/migrate/20240820190548_drop_sessions_table.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class DropSessionsTable < ActiveRecord::Migration[6.1]
def up
drop_table :sessions
end

def down
# rollback will the execute the initial migration code written to create the sessions table
require Rails.root.join('db/migrate/20181024120747_add_sessions_table.rb')
AddSessionsTable.new.change
end
end
Loading

0 comments on commit 4b6e583

Please sign in to comment.