add auth token for users

This commit is contained in:
Nihad Abbasov 2011-11-15 11:08:05 +04:00
parent 8d74123d61
commit 003bf61258
5 changed files with 19 additions and 7 deletions

View file

@ -0,0 +1,5 @@
class AddAuthenticationTokenToUsers < ActiveRecord::Migration
def change
add_column :users, :authentication_token, :string
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20111111093150) do
ActiveRecord::Schema.define(:version => 20111115063954) do
create_table "issues", :force => true do |t|
t.string "title"
@ -103,6 +103,7 @@ ActiveRecord::Schema.define(:version => 20111111093150) do
t.string "skype", :default => "", :null => false
t.string "linkedin", :default => "", :null => false
t.string "twitter", :default => "", :null => false
t.string "authentication_token"
end
add_index "users", ["email"], :name => "index_users_on_email", :unique => true