Forum: Ruby on Rails generating user table with Acts_as_authenticated

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9f173c578c2ff435a41d448e25d62870?d=identicon&s=25 SB (Guest)
on 2006-01-12 15:10
(Received via mailing list)
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
This topic is locked and can not be replied to.