Skip to content

Instantly share code, notes, and snippets.

@demelziraptor
demelziraptor / add_devise_columns_to_user.rb
Created May 23, 2012 23:12
Devise API register and sign in using tokens
class AddDeviseColumnsToUser < ActiveRecord::Migration
def self.up
change_table :users do |t|
t.string :authentication_token
end
end
def self.down
change_table :users do |t|
t.remove :authentication_token
end