Sha256: 0c9862094cadf9f07b620636a0222aeed644ea2f3b92e50254f934fc17f1a3e0

Contents?: true

Size: 420 Bytes

Versions: 2

Compression:

Stored size: 420 Bytes

Contents

class DeviseTokenAuthAddTokenInfoTo<%= user_class.pluralize %> < ActiveRecord::Migration
  def change
    change_table(:<%= user_class.pluralize.underscore %>) do |t|
      ## unique oauth id
      t.string :provider
      t.string :uid, :null => false, :default => ""

      ## Tokens
      t.text :tokens
    end

    add_index :<%= user_class.pluralize.underscore %>, :uid,                  :unique => true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xing_backend_token_auth-0.1.32 lib/generators/devise_token_auth/templates/devise_token_auth_add_token_info_to_users.rb.erb
xing_backend_token_auth-0.1.31 lib/generators/devise_token_auth/templates/devise_token_auth_add_token_info_to_users.rb.erb