Sha256: 7ed8a259c8943862f7d600253282ac11265cfb4b0007de7f8ff598cfc2b8005b

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

class CreateTokens < ActiveRecord::Migration
  def change
    create_table :visa_tokens do |t|
      t.string   :tokenable_type,   null: false
      t.integer  :tokenable_id,     null: false
      t.string   :client_id,        null: false
      t.string   :encrypted_secret, null: false
      t.datetime :last_requested_at
      t.timestamps null: false
    end

    add_index :visa_tokens, [:tokenable_type, :tokenable_id]
    add_index :visa_tokens, :client_id, unique: true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
visa-0.0.3 db/migrate/1_create_tokens.rb
visa-0.0.2 db/migrate/1_create_tokens.rb
visa-0.0.1 db/migrate/1_create_tokens.rb