README.md in simple_migrations-0.1.1 vs README.md in simple_migrations-0.1.2
- old
+ new
@@ -1,25 +1,25 @@
-# Migrations
+# Simple Migrations
Rake tasks for basic migration management
## Usage
-Here's an example using Postgres, but any SQL database should be fine.
+Here's an example using Postgres, but any SQL database should be fine. Add the following to your Rakefile:
```
-require 'migrations'
+require 'simple_migrations'
require 'pg'
namespace :migrate do
task :connect do
# pretend this was loaded from a file or ENV
conf = { host: '192.168.33.10', user: 'postgres', dbname: 'migrations_development' }
# Using Postgres here, but any DB should be fine
conn = PG::Connection.new(conf)
- # set up a block that allows Migrations run SQL
- Migrations.sql_executor do |sql|
+ # set up a block that allows SimpleMigrations run SQL
+ SimpleMigrations.sql_executor do |sql|
conn.exec(sql)
end
end
end
```