mongoid_rails_migrations 0.0.12 → 0.0.13
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.
- data/Gemfile.lock +1 -1
- data/README.rdoc +8 -10
- data/lib/mongoid_rails_migrations/mongoid_ext/railtie.rb +5 -2
- data/mongoid_rails_migrations.gemspec +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
== RELEASE NOTES
|
2
|
-
*
|
3
|
-
* In 2.0.0.rc.1, Mongoid::Config changed from a Class to a Module.
|
4
|
-
* In your application, please be sure to require mongoid before mongoid_rails_migrations. Again, this is necessary to support both pre/post 2.0.0.rc.1. I plan on fixing the ugly once mongoid goes 2.0 final.
|
2
|
+
* Rails 3.1 compatible
|
5
3
|
|
6
4
|
== SYNOPSIS
|
7
5
|
* Data migrations for Mongoid.
|
8
6
|
|
9
7
|
== MIGRATE WHEN ...
|
10
|
-
* You need to rearrange
|
11
|
-
*
|
8
|
+
* You need to rearrange data
|
9
|
+
* The migrating is good
|
12
10
|
|
13
11
|
== REQUIREMENTS
|
14
12
|
* rails ~> 3.0.0
|
@@ -17,13 +15,13 @@
|
|
17
15
|
== INSTALL
|
18
16
|
* gem install mongoid_rails_migrations
|
19
17
|
* In your Gemfile, include (after including mongoid):
|
20
|
-
gem "mongoid_rails_migrations", "
|
18
|
+
gem "mongoid_rails_migrations", "0.0.13"
|
21
19
|
|
22
20
|
== FEATURES AND HOW TO USE
|
23
21
|
* generator:
|
24
22
|
* rails generate mongoid:migration your_migration_name_here
|
25
23
|
|
26
|
-
* migrations
|
24
|
+
* migrations:
|
27
25
|
* db:migrate
|
28
26
|
* db:migrate:down
|
29
27
|
* db:migrate:up
|
@@ -31,10 +29,10 @@
|
|
31
29
|
* db:migrate:redo
|
32
30
|
* db:migrate:reset
|
33
31
|
* db:reseed (handled by mongoid)
|
34
|
-
* db:version
|
32
|
+
* db:version
|
35
33
|
|
36
34
|
== NOTES
|
37
|
-
* Only tested with ruby 1.9.
|
35
|
+
* Only tested with ruby 1.9.2
|
38
36
|
|
39
37
|
== CREDITS TO
|
40
38
|
* rails
|
@@ -43,7 +41,7 @@
|
|
43
41
|
Much of this gem simply modifies existing code from both projects.
|
44
42
|
With that out of the way, on to the license.
|
45
43
|
|
46
|
-
== LICENSE
|
44
|
+
== LICENSE (MIT)
|
47
45
|
|
48
46
|
Copyright © 2010: Alan Da Costa
|
49
47
|
|
@@ -4,8 +4,11 @@ if defined?(Rails::Railtie)
|
|
4
4
|
module Rails #:nodoc:
|
5
5
|
module Mongoid #:nodoc:
|
6
6
|
class Railtie < Rails::Railtie
|
7
|
-
config.
|
8
|
-
|
7
|
+
if config.respond_to?(:app_generators)
|
8
|
+
config.app_generators.orm :mongoid, :migration => true
|
9
|
+
else
|
10
|
+
config.generators.orm :mongoid, :migration => true
|
11
|
+
end
|
9
12
|
rake_tasks do
|
10
13
|
load "mongoid_rails_migrations/mongoid_ext/railties/database.rake"
|
11
14
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.platform = Gem::Platform::RUBY
|
3
3
|
s.name = 'mongoid_rails_migrations'
|
4
|
-
s.version = '0.0.
|
4
|
+
s.version = '0.0.13'
|
5
5
|
s.summary = 'Data migrations for Mongoid in Active Record style, minus column input.'
|
6
6
|
s.description = 'Migrations for the migrator.'
|
7
7
|
|