I study the rails. I found that Devise does a great job of connecting quickly and seamlessly to authentication, but I have one question.
How do I change modules after the first start of the Devise generator (for example, rails g devise User)? This default value has the following migration:
def self.up create_table(:users) do |t| t.database_authenticatable :null => false t.recoverable t.rememberable t.trackable
If I started this migration, how to add or remove some of these modules at a later stage? For example. Perhaps I want to add a lock to an existing user model. I understand how to make changes to the model and devise.rb , but I'm not sure what to do with migrations.
Sorry, if the answer is already here, I drove a couple of hours here and google and did not find anything. Maybe I was looking for the wrong thing.
Thanks in advance! Jason
ps. I am using rails 3.0.0
develop 1.1.3
ruby-on-rails ruby-on-rails-3 migration devise
Jason
source share