Rails plugin for automating migrations
Ruby
Latest commit 59977d1 Apr 26, 2013 2 @pjhyett Merge pull request #2 from jtoy/master
I had to change this to get it to work on rails 3.
Permalink
Failed to load latest commit information.
lib
tasks Added the ability to reset schema migrations table when creating a fr… Feb 16, 2009
test
MIT-LICENSE
README
Rakefile
init.rb

README

== AutoMigrations

Forget migrations, auto-migrate!


== Usage

Write out your schema (or use an existing one)

  $ cat db/schema.rb

  ActiveRecord::Schema.define do

    create_table :posts do |t|
      t.string   :title
      t.text     :body
      t.timestamps
    end
  
  end

  $ rake db:auto:migrate

  Created posts table

...a few days later

  $ cat db/schema.rb

  ActiveRecord::Schema.define do

    create_table :posts do |t|
      t.string   :title
      t.text     :content
      t.timestamps
    end
  
  end

  $ rake db:auto:migrate
  -- add_column("posts", :content, :text)
     -> 0.0307s
  -- remove_column("posts", "body")
     -> 0.0311s

* PJ Hyett [ pjhyett@gmail.com ]