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