Commit ee7d973ca71784e3b46374398f93ea37d72bacb6
1 parent
9538c387
Exists in
master
and in
1 other branch
Fixed app renaming by not using app name as a key.
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
app/models/app.rb
| ... | ... | @@ -5,7 +5,8 @@ class App |
| 5 | 5 | field :name, :type => String |
| 6 | 6 | field :api_key |
| 7 | 7 | field :resolve_errs_on_deploy, :type => Boolean, :default => false |
| 8 | - key :name | |
| 8 | + # Some legacy apps may have sting as key instead of BSON::ObjectID | |
| 9 | + identity :type => String | |
| 9 | 10 | |
| 10 | 11 | embeds_many :watchers |
| 11 | 12 | embeds_many :deploys | ... | ... |