end
add_column :new_queries, :user_id, :integer
end
def self.down
drop_table :users
remove_column :new_queries, :user_id
end
end
If it’s not giving you an error message, but also not saying it’s
creating a table, that probably means it’s not running the migration,
and that probably means that for some reason it thinks it’s already
done that migration. You’d have to migrate down and back up again
(and fix any inconsistencies by hand).
David
–
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (Ruby for Rails)
(See what readers are saying! http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)
I’ve done the rake db:migrate VERSION=0.
There was not a response in the promp other than giving the directory
where the app is stored. I still had the schema and users table.