Sha256: dde7c9ade1a28d0d6e70ffb7ec452d0dd77e64364f5b6a8e14c57c1279a24bfd

Contents?: true

Size: 401 Bytes

Versions: 4

Compression:

Stored size: 401 Bytes

Contents

class SimpleTokenAuthMigration < ActiveRecord::Migration
  def change
    create_table :api_keys do |t|
      t.integer :token_authenticatable_id,  null: false
      t.string :token_authenticatable_type, null: false
      t.string :access_token,               null: false
      t.datetime :expired_at
      t.datetime :created_at
    end
    add_index :api_keys, :access_token, unique: true
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
simple_token_auth-0.0.4 lib/generators/templates/migration.rb
simple_token_auth-0.0.4 test/dummy/db/migrate/20141203034209_simple_token_auth_migration.rb
simple_token_auth-0.0.3 lib/generators/templates/migration.rb
simple_token_auth-0.0.3 test/dummy/db/migrate/20141203034209_simple_token_auth_migration.rb