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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb9a14338fcc3e5dc4fd47cd79a86be5ea9fc4ce
4
- data.tar.gz: 8fd2e7ca784a52bf2590bc9abc1c3b6e79a53b16
3
+ metadata.gz: 5e6daf84b3cb0108a5eb8ccf9d9c12235ff8880c
4
+ data.tar.gz: 767c48d339c80928c7efd9e3439317a108725606
5
5
  SHA512:
6
- metadata.gz: ab447defb1e04039a6dedd71b1e5ff0cd34cb560efe95ca09585816a818084e43b0991350bb39d34927640cfd15900227b085ffd1cfabc1e1f71f0d3acab2c2c
7
- data.tar.gz: 9c379ef5dea4ccd65f102ef6b11745b4e5d24f3dd1218470a062a4ff82b82db615b9050a17c70bca834b5a3ee229dc0a0cf8b81c0f8953abcb93187c6dc61cb1
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.6.0
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-03-31 00:00:00.000000000 Z
12
+ date: 2014-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra