mongoid_migration 0.0.1
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/MIT-LICENSE +20 -0
- data/README.rdoc +26 -0
- data/Rakefile +37 -0
- data/lib/generators/mongoid_migration/USAGE +8 -0
- data/lib/generators/mongoid_migration/migration.rb +11 -0
- data/lib/generators/mongoid_migration/mongoid_migration_generator.rb +14 -0
- data/lib/generators/mongoid_migration/templates/mongoid_migration.rb +9 -0
- data/lib/mongoid_migration.rb +1 -0
- data/lib/mongoid_migration/migration.rb +332 -0
- data/lib/mongoid_migration/version.rb +3 -0
- data/lib/tasks/mongoid_migration_tasks.rake +68 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +7 -0
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/product.rb +5 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +51 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +10 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/mongoid.yml +20 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/lib/generators/mongoid_migration/USAGE +8 -0
- data/test/dummy/lib/generators/mongoid_migration/migration.rb +11 -0
- data/test/dummy/lib/generators/mongoid_migration/mongoid_migration_generator.rb +14 -0
- data/test/dummy/lib/generators/mongoid_migration/templates/mongoid_migration.rb +9 -0
- data/test/dummy/lib/tasks/mongoid_migration_tasks.rake +68 -0
- data/test/dummy/log/development.log +233 -0
- data/test/dummy/log/test.log +4 -0
- data/test/dummy/mongodb/migrate/20111114234935_yo.rb +9 -0
- data/test/dummy/mongodb/migrate/20111116172729_foo.rb +9 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/mongoid_migration_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- metadata +184 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
module MongoidMigration
|
2
|
+
module Generators
|
3
|
+
module Migration
|
4
|
+
# Implement the required interface for Rails::Generators::Migration.
|
5
|
+
def next_migration_number(dirname) #:nodoc:
|
6
|
+
next_migration_number = current_migration_number(dirname) + 1
|
7
|
+
[Time.now.utc.strftime("%Y%m%d%H%M%S"), "%.14d" % next_migration_number].max
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'generators/mongoid_migration/migration'
|
2
|
+
|
3
|
+
class MongoidMigrationGenerator < Rails::Generators::NamedBase
|
4
|
+
|
5
|
+
include Rails::Generators::Migration
|
6
|
+
extend MongoidMigration::Generators::Migration
|
7
|
+
|
8
|
+
source_root File.expand_path("../templates", __FILE__)
|
9
|
+
|
10
|
+
def create_migration_file
|
11
|
+
migration_template "mongoid_migration.rb", "mongodb/migrate/#{file_name}.rb"
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
namespace :db do
|
2
|
+
namespace :mongoid do
|
3
|
+
|
4
|
+
namespace :migration do
|
5
|
+
desc 'Runs the "up" for a given migration VERSION.'
|
6
|
+
task :up => :environment do
|
7
|
+
version = ENV["VERSION"] ? ENV["VERSION"].to_i : nil
|
8
|
+
raise "VERSION is required" unless version
|
9
|
+
MongoidMigration::Migrator.run(:up, "mongodb/migrate/", version)
|
10
|
+
end
|
11
|
+
|
12
|
+
desc 'Runs the "down" for a given migration VERSION.'
|
13
|
+
task :down => :environment do
|
14
|
+
version = ENV["VERSION"] ? ENV["VERSION"].to_i : nil
|
15
|
+
raise "VERSION is required" unless version
|
16
|
+
MongoidMigration::Migrator.run(:down, "mongodb/migrate/", version)
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "Display status of migrations"
|
20
|
+
task :status => :environment do
|
21
|
+
|
22
|
+
db_list = MongoidMigration::Migration.all.map &:version
|
23
|
+
file_list = []
|
24
|
+
Dir.foreach(File.join(Rails.root, 'mongodb', 'migrate')) do |file|
|
25
|
+
# only files matching "20091231235959_some_name.rb" pattern
|
26
|
+
if match_data = /(\d{14})_(.+)\.rb/.match(file)
|
27
|
+
status = db_list.delete(match_data[1]) ? 'up' : 'down'
|
28
|
+
file_list << [status, match_data[1], match_data[2]]
|
29
|
+
end
|
30
|
+
end
|
31
|
+
# output
|
32
|
+
puts "#{"Status".center(8)} #{"Migration ID".ljust(14)} Migration Name"
|
33
|
+
puts "-" * 50
|
34
|
+
file_list.each do |file|
|
35
|
+
puts "#{file[0].center(8)} #{file[1].ljust(14)} #{file[2].humanize}"
|
36
|
+
end
|
37
|
+
db_list.each do |version|
|
38
|
+
puts "#{'up'.center(8)} #{version.ljust(14)} *** NO FILE ***"
|
39
|
+
end
|
40
|
+
puts
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
desc "Retrieves the current schema version number"
|
45
|
+
task :version => :environment do
|
46
|
+
puts "Current version: #{MongoidMigration::Migrator.current_version}"
|
47
|
+
end
|
48
|
+
|
49
|
+
desc "Migrate the database (options: VERSION=x, VERBOSE=false)."
|
50
|
+
task :migrate => :environment do
|
51
|
+
MongoidMigration::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
|
52
|
+
MongoidMigration::Migrator.migrate 'mongodb/migrate', ENV["VERSION"] ? ENV["VERSION"].to_i : nil
|
53
|
+
end
|
54
|
+
|
55
|
+
desc 'Rolls migrations back to the previous version (specify steps w/ STEP=n).'
|
56
|
+
task :rollback => :environment do
|
57
|
+
step = ENV['STEP'] ? ENV['STEP'].to_i : 1
|
58
|
+
MongoidMigration::Migrator.rollback('mongodb/migrate/', step)
|
59
|
+
end
|
60
|
+
|
61
|
+
desc 'Pushes migrations to the next version (specify steps w/ STEP=n).'
|
62
|
+
task :forward => :environment do
|
63
|
+
step = ENV['STEP'] ? ENV['STEP'].to_i : 1
|
64
|
+
MongoidMigration::Migrator.forward('mongodb/migrate/', step)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
@@ -0,0 +1,233 @@
|
|
1
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
2
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
3
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
4
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
5
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
6
|
+
MONGODB dummy_development['$cmd'].find({:create=>"mongoid_migration_migrations"}).limit(-1)
|
7
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
8
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
9
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
10
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
11
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
12
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
13
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
14
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
15
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
16
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
17
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
18
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
19
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
20
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
21
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
22
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
23
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
24
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
25
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
26
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
27
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
28
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
29
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
30
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
31
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
32
|
+
Migrating to Yo (20111114234935)
|
33
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
34
|
+
MONGODB dummy_development['$cmd'].find({:create=>"products"}).limit(-1)
|
35
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111114234935"}, "fields"=>nil}).limit(-1)
|
36
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
37
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
38
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
39
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
40
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
41
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
42
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
43
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
44
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
45
|
+
Migrating to Yo (20111114234935)
|
46
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
47
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"products", "query"=>{:name=>"yo"}, "fields"=>nil}).limit(-1)
|
48
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111114234935"}, "fields"=>nil}).limit(-1)
|
49
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
50
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
51
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
52
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
53
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
54
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
55
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
56
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"products", "query"=>{}, "fields"=>nil}).limit(-1)
|
57
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
58
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
59
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
60
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
61
|
+
Migrating to Yo (20111114234935)
|
62
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
63
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111114234935"}, "fields"=>nil}).limit(-1)
|
64
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
65
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
66
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
67
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"products", "query"=>{}, "fields"=>nil}).limit(-1)
|
68
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
69
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
70
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
71
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
72
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
73
|
+
Migrating to Yo (20111114234935)
|
74
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
75
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"products", "query"=>{:name=>"yo"}, "fields"=>nil}).limit(-1)
|
76
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111114234935"}, "fields"=>nil}).limit(-1)
|
77
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
78
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
79
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
80
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
81
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
82
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
83
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
84
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
85
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
86
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
87
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
88
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
89
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
90
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
91
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
92
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
93
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
94
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
95
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
96
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
97
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
98
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
99
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
100
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
101
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
102
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
103
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
104
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
105
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
106
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
107
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
108
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
109
|
+
Migrating to Yo (20111114234935)
|
110
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
111
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111114234935"}, "fields"=>nil}).limit(-1)
|
112
|
+
Migrating to Foo (20111116172729)
|
113
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
114
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
115
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
116
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
117
|
+
Migrating to Yo (20111114234935)
|
118
|
+
Migrating to Foo (20111116172729)
|
119
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
120
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111116172729"}, "fields"=>nil}).limit(-1)
|
121
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
122
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
123
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
124
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
125
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
126
|
+
Migrating to Foo (20111116172729)
|
127
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
128
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"products", "query"=>{:name=>"foo"}, "fields"=>nil}).limit(-1)
|
129
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111116172729"}, "fields"=>nil}).limit(-1)
|
130
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
131
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
132
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
133
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
134
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
135
|
+
Migrating to Yo (20111114234935)
|
136
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
137
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"products", "query"=>{:name=>"yo"}, "fields"=>nil}).limit(-1)
|
138
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111114234935"}, "fields"=>nil}).limit(-1)
|
139
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
140
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
141
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
142
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
143
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
144
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
145
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
146
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
147
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
148
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
149
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
150
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
151
|
+
Migrating to Yo (20111114234935)
|
152
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
153
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111114234935"}, "fields"=>nil}).limit(-1)
|
154
|
+
Migrating to Foo (20111116172729)
|
155
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111116172729"}, "fields"=>nil}).limit(-1)
|
156
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
157
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
158
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
159
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
160
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
161
|
+
Migrating to Foo (20111116172729)
|
162
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
163
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"products", "query"=>{:name=>"foo"}, "fields"=>nil}).limit(-1)
|
164
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111116172729"}, "fields"=>nil}).limit(-1)
|
165
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
166
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
167
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
168
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
169
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
170
|
+
Migrating to Yo (20111114234935)
|
171
|
+
Migrating to Foo (20111116172729)
|
172
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
173
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111116172729"}, "fields"=>nil}).limit(-1)
|
174
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
175
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
176
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
177
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
178
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
179
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
180
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
181
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
182
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
183
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
184
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
185
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
186
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
187
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
188
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
189
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
190
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
191
|
+
Migrating to Foo (20111116172729)
|
192
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
193
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"products", "query"=>{:name=>"foo"}, "fields"=>nil}).limit(-1)
|
194
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111116172729"}, "fields"=>nil}).limit(-1)
|
195
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
196
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
197
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
198
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
199
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
200
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
201
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
202
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
203
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
204
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
205
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
206
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"products", "query"=>{:name=>"yo"}, "fields"=>nil}).limit(-1)
|
207
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111114234935"}, "fields"=>nil}).limit(-1)
|
208
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
209
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
210
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
211
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
212
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
213
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111114234935"}, "fields"=>nil}).limit(-1)
|
214
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
215
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
216
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
217
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
218
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
219
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
220
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
221
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
222
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
223
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mongoid_migration_migrations", "query"=>{:version=>"20111116172729"}, "fields"=>nil}).limit(-1)
|
224
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
225
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
226
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
227
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
228
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
229
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
230
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
231
|
+
MONGODB dummy_development['mongoid_migration_migrations'].find({})
|
232
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
233
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
@@ -0,0 +1,4 @@
|
|
1
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
2
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
3
|
+
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
|
4
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|