simple_migrations 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/simple_migrations/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce4c0f0c59f68544077860b9354d4b80c23eb4fe
|
4
|
+
data.tar.gz: 4c0b467cd6cf0c61ea22bd6ca1a1867daeb90ce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6142cbf2e78d27f1a950e1523fbea2c10450d9cf2a8c16c2701528ca6b6cd0a9eb3a6c85a3930f64371d4ebfa0659dbc326f66e253de7875f7efeff674318bbd
|
7
|
+
data.tar.gz: fe76c764b96fe66186d070096ea46d0ba6adc63ec1bee4b5a35035de4a4602c26f9a95bb0442e9d8af0aa6ecbe7eb76fe341808c84b6e00d5655ce53d31aadc6
|
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
# Migrations
|
1
|
+
# Simple Migrations
|
2
2
|
|
3
3
|
Rake tasks for basic migration management
|
4
4
|
|
5
5
|
## Usage
|
6
6
|
|
7
|
-
Here's an example using Postgres, but any SQL database should be fine.
|
7
|
+
Here's an example using Postgres, but any SQL database should be fine. Add the following to your Rakefile:
|
8
8
|
```
|
9
|
-
require '
|
9
|
+
require 'simple_migrations'
|
10
10
|
require 'pg'
|
11
11
|
|
12
12
|
namespace :migrate do
|
@@ -17,8 +17,8 @@ namespace :migrate do
|
|
17
17
|
# Using Postgres here, but any DB should be fine
|
18
18
|
conn = PG::Connection.new(conf)
|
19
19
|
|
20
|
-
# set up a block that allows
|
21
|
-
|
20
|
+
# set up a block that allows SimpleMigrations run SQL
|
21
|
+
SimpleMigrations.sql_executor do |sql|
|
22
22
|
conn.exec(sql)
|
23
23
|
end
|
24
24
|
end
|