Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove token_authenticateable from users

  • Loading branch information...
commit 79cc13635bb2a159dfe5ed98aecbe87975ab1794 1 parent 1421ae5
@martinisoft authored
View
2  app/models/user.rb
@@ -6,7 +6,7 @@ class User < ActiveRecord::Base
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable,
- :token_authenticateable, :confirmable, :lockable
+ :confirmable, :lockable
attr_accessor :login
attr_accessible :username, :email, :login,
View
9 db/migrate/20110424011446_remove_authentication_token_from_users.rb
@@ -0,0 +1,9 @@
+class RemoveAuthenticationTokenFromUsers < ActiveRecord::Migration
+ def self.up
+ remove_column :users, :authentication_token
+ end
+
+ def self.down
+ add_column :users, :authentication_token, :string
+ end
+end
View
3  db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110308234254) do
+ActiveRecord::Schema.define(:version => 20110424011446) do
create_table "comic_strips", :force => true do |t|
t.integer "comic_id"
@@ -76,7 +76,6 @@
t.integer "failed_attempts", :default => 0
t.string "unlock_token"
t.datetime "locked_at"
- t.string "authentication_token"
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "admin"
Please sign in to comment.
Something went wrong with that request. Please try again.