Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed devise specific schema additions to migrations and converted …

…them to normal rails syntax
  • Loading branch information...
commit 3ee54586ede96e907546f135d7848764d45c41fb 1 parent d3faae9
@adamgamble adamgamble authored
View
14 db/migrate/20100927180254_devise_create_users.rb
@@ -1,10 +1,16 @@
class DeviseCreateUsers < ActiveRecord::Migration
def self.up
create_table(:users) do |t|
- t.database_authenticatable :null => false
- t.recoverable
- t.rememberable
- t.trackable
+ t.string :email, :null => false, :default => ""
+ t.string :encrypted_password, :null => false, :default => ""
+ t.string :reset_password_token
+ t.datetime :reset_password_sent_at
+ t.datetime :remember_created_at
+ t.integer :sign_in_count, :default => 0
+ t.datetime :current_sign_in_at
+ t.datetime :last_sign_in_at
+ t.string :current_sign_in_ip
+ t.string :last_sign_in_ip
# t.confirmable
# t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
View
2  db/migrate/20101007175626_add_lockable_to_users.rb
@@ -1,7 +1,7 @@
class AddLockableToUsers < ActiveRecord::Migration
def self.up
change_table(:users) do |t|
- t.lockable :lock_strategy => :none, :unlock_strategy => :none
+ t.datetime :locked_at
end
end
View
2  db/migrate/20111227140859_add_token_to_user.rb
@@ -1,7 +1,7 @@
class AddTokenToUser < ActiveRecord::Migration
def change
change_table :users do |t|
- t.token_authenticatable
+ t.string :authentication_token
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.