1602/express-on-railway — Issue #120: bug on define setting in schema.js
Author: askie
Created: 2012-02-15 10:01:22+00:00
State: open

config/database.json :
{ "development":
{ "driver": "mongoose"
, "url": "mongodb://127.0.0.1:27899/yhj"
}
}

in db/schema.js :
var Post = schema('mongoose', {driver: 'mongoose', url: 'mongodb://127.0.0.1:27023/yhj'}, function(){
define('Post', function(){
property('title', String);
property('content', String);
})
})

in the controller action, Post still connect to "mongodb://127.0.0.1:27899/yhj", but not "mongodb://127.0.0.1:27023/yhj"

is a bug?