Ruby on Rails Thursday, October 30, 2014

This is the ruby code of the migration.

(class CreateUsers < ActiveRecord::Migration
  def up
    create_table :users do |t|
    t.string "first_name",:limit =>25
    t.string "last_name", :limit =>50
    t.string "email",:default => "",:null => false
    t.string "password",:limit => 40
    def down
      drop_table :users
The terminal command 

 (rake db:migrate VERSION=0)

But i am still able to see the users table after running that terminal command. It says reverting CreateUsers but does not drop the table.
Any help?

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment