I have a problem understanding Rails/Rake migrations.
For example let’s say I have a migrate-script like this:
class CreateUsers < ActiveRecord::Migration
create_table :users do |t|
Smith", :email=>“[email protected]”, :username=>“js”,
If I do a migration with db:reset it will update all tables, DELETE
EVERYTHING, and then insert John S…
However, let’s say I want to add a
to that model, and migrate it, what do I use?
I would like to keep all data already in DB and just have rake add one
column to the table.
I tried migrate:redo, migrate.up etc. The latter even requires a
Version value. What do I enter here?
Now this is obviously a very noobish question, but maybe one of you
FYI, I’m using latest RoR with Aptana on Windows7 and mySQL as DB-