sinatra-activerecord 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/sinatra/activerecord/tasks.rake +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e6daf84b3cb0108a5eb8ccf9d9c12235ff8880c
|
4
|
+
data.tar.gz: 767c48d339c80928c7efd9e3439317a108725606
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f13743ccadcb71e61e284df3bca9e8b502f93e447ccbc082d5e8147f1c92bc2a01ccfd152313a971185a45b96425d72233c65bb6461e52e3733a9ecc6061ef2b
|
7
|
+
data.tar.gz: 84c62f7fdad2bc8087da92592b23f6d71888ffca5b072e574b8a0c21f74b29951bb4dbcca713b7b8acf9c4686acf59a539f99ae8b448ca32fbcadf54f077f0da
|
data/README.md
CHANGED
@@ -51,6 +51,8 @@ rake db:create # create the database from config/database.ym
|
|
51
51
|
rake db:create_migration # create an ActiveRecord migration
|
52
52
|
rake db:drop # drops the data from config/database.yml from the current Sinatra env
|
53
53
|
rake db:migrate # migrate the database (use version with VERSION=n)
|
54
|
+
rake db:migrate:reset # drops and creates the database and then runs the migrations
|
55
|
+
rake db:reset # drops and creates the database
|
54
56
|
rake db:rollback # roll back the migration (use steps with STEP=n)
|
55
57
|
rake db:schema:dump # dump schema into file
|
56
58
|
rake db:schema:load # load schema into database
|
@@ -36,6 +36,12 @@ namespace :db do
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
+
namespace :migrate do
|
40
|
+
task :reset => ['db:drop', 'db:create', 'db:migrate']
|
41
|
+
end
|
42
|
+
|
43
|
+
task :reset => ['db:drop', 'db:setup']
|
44
|
+
|
39
45
|
desc "roll back the migration (use steps with STEP=n)"
|
40
46
|
task :rollback do
|
41
47
|
Sinatra::ActiveRecordTasks.rollback(ENV["STEP"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Mizerany
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|