Sha256: 5f4ee2febe4990931f05e48211f03d257e1ea08d89d1aed1461281d77addc044
Contents?: true
Size: 614 Bytes
Versions: 8
Compression:
Stored size: 614 Bytes
Contents
class CreateAuthorizations < ActiveRecord::Migration def change create_table :authorizations do |t| t.integer :user_id t.string :provider, limit: 50 t.string :uid t.string :token, limit: 500 t.datetime :expires_at t.datetime :last_session_at t.string :last_session_ip t.integer :session_count, default: 0 t.timestamps null: true end add_index :authorizations, :user_id add_index :authorizations, [ :user_id, :provider ] add_index :authorizations, :uid add_index :authorizations, :token end end
Version data entries
8 entries across 8 versions & 1 rubygems