Sha256: f8d503d57e61d84bbec11b06db8f9a0e6abdb4cd4740939f98558cc2e12012af

Contents?: true

Size: 895 Bytes

Versions: 15

Compression:

Stored size: 895 Bytes

Contents

class AddDeviseToUsers < ActiveRecord::Migration
  def self.up
    add_column :users, :database_authenticatable, :null => false
    add_column :users, :recoverable
    add_column :users, :rememberable
    add_column :users, :trackable
    #add_column :users, :encryptable
    #add_column :users, :confirmable
    #add_column :users, :lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
    add_column :users, :token_authenticatable
  end

  def self.down
    remove_column :users, :database_authenticatable, :null => false
    remove_column :users, :recoverable
    remove_column :users, :rememberable
    remove_column :users, :trackable
    #remove_column :users, :encryptable
    #remove_column :users, :confirmable
    #remove_column :users, :lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
    remove_column :users, :token_authenticatable
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
old_sql-0.25.0 lib/generators/old_sql/templates/devise/add_devise_to_users_migration.rb
old_sql-0.24.0 lib/generators/old_sql/templates/devise/add_devise_to_users_migration.rb
old_sql-0.23.0 lib/generators/old_sql/templates/devise/add_devise_to_users_migration.rb
old_sql-0.22.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb
old_sql-0.21.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb
old_sql-0.20.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb
old_sql-0.19.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb
old_sql-0.18.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb
old_sql-0.17.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb
old_sql-0.16.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb
old_sql-0.15.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb
old_sql-0.14.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb
old_sql-0.13.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb
old_sql-0.12.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb
old_sql-0.11.0 lib/generators/old_sql/templates/devise/add_devise_to_users.rb