Sha256: f0324f8004eb752b8667333b6e6afa7784c65887731d1bc651c2690239a812c0

Contents?: true

Size: 447 Bytes

Versions: 3

Compression:

Stored size: 447 Bytes

Contents

class CreateTokenAuthenticateMeSessions < ActiveRecord::Migration[4.2]
  def change
    create_table :token_authenticate_me_sessions do |t|
      t.string   :key, null: false
      t.datetime :expiration
      t.integer  :user_id

      t.timestamps null: false
    end

    add_index :token_authenticate_me_sessions, :key, unique: true
    add_foreign_key :token_authenticate_me_sessions, :token_authenticate_me_users, column: :user_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
token_authenticate_me-0.11.2 db/migrate/20160622203801_create_token_authenticate_me_sessions.rb
token_authenticate_me-0.11.1 db/migrate/20160622203801_create_token_authenticate_me_sessions.rb
token_authenticate_me-0.11.0 db/migrate/20160622203801_create_token_authenticate_me_sessions.rb