simplest_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/lib/simplest_migrations/version.rb +1 -1
- data/lib/tasks/db.rake +2 -2
- 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: fe061d6f8b2e7afd3d762a88a074aa511da9a237
|
|
4
|
+
data.tar.gz: b6d4dcf6520841672a7c38915bed350bfb449467
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c860535d119a5e47ee670112c5516e2bcbf96beb55c79902eb293bb54d3e067b2aaf219d02811449f1e5071cdc01802ad6e783349a5b2cb601f9540ced701afb
|
|
7
|
+
data.tar.gz: a5eb6798d8ecb91359a1cea92879785d123238e56012889c8b2bc5955374655568ec7781440e12e3e89d89358363fc55365a24bd34e2976e200512d98304a2b9
|
data/lib/tasks/db.rake
CHANGED
|
@@ -3,13 +3,13 @@ require_relative "../simplest_migrations"
|
|
|
3
3
|
namespace :db do
|
|
4
4
|
desc "Drop the database"
|
|
5
5
|
task :drop do
|
|
6
|
-
SimplestMigrations::Database.execute "DROP DATABASE IF EXISTS #{Database.name}", "postgres"
|
|
6
|
+
SimplestMigrations::Database.execute "DROP DATABASE IF EXISTS #{SimplestMigrations::Database.name}", "postgres"
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
desc "Create the database"
|
|
10
10
|
task :create do
|
|
11
11
|
begin
|
|
12
|
-
SimplestMigrations::Database.execute "CREATE DATABASE #{Database.name}", "postgres"
|
|
12
|
+
SimplestMigrations::Database.execute "CREATE DATABASE #{SimplestMigrations::Database.name}", "postgres"
|
|
13
13
|
rescue ActiveRecord::StatementInvalid => ex
|
|
14
14
|
unless ex.to_s =~ /DuplicateDatabase/
|
|
15
15
|
raise ex
|