Sorry for the newbie question. I''d like to check out the
Acts_as_authenticated plugin but have no idea how to conveniently set up the
User Table in Mysql.
I use a mac OSX, but how do I change the following code into a DB schema?
def self.up
create_table "add_authenticated_tables", :force => true do |t|
t.column "login", :string, :limit => 40
t.column "email", :string, :limit => 100
t.column "crypted_password", :string, :limit => 40
t.column "salt", :string, :limit => 40
t.column "activation_code", :string, :limit => 40 # only if
you want
t.column "activated_at", :datetime # user
activation
t.column "created_at", :datetime
t.column "updated_at", :datetime
end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060112/fa489dcd/attachment-0001.html