forked from DMPRoadmap/roadmap
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #859 from portagenetwork/aaron/issues/723
Drop Sessions Table and Delete `lib/tasks/sessions.rake`
- Loading branch information
Showing
4 changed files
with
116 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.