Created
February 25, 2016 17:23
-
-
Save bufordtaylor/6697fb505defdbda10e9 to your computer and use it in GitHub Desktop.
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
class CreateAdminDoppelgangerSession < ActiveRecord::Migration | |
def change | |
create_table :admin_doppelganger_sessions do |t| | |
t.integer "admin_user_id", null: false | |
t.references :user | |
t.boolean "active", default: true | |
t.date "logout_date" | |
t.string "token", null: false | |
t.string "return_to" | |
t.timestamps | |
end | |
add_index :admin_doppelganger_sessions, :token | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment