This repository was archived by the owner on Nov 21, 2017. It is now read-only.
forked from pjhyett/auto_migrations
-
Notifications
You must be signed in to change notification settings - Fork 2
Rails plugin for automating migrations
License
antage/auto_migrations
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
== 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 [ [email protected] ]
About
Rails plugin for automating migrations
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Ruby 100.0%