Versions in this module Expand all Collapse all v1 v1.3.2 May 9, 2017 v1.3.1 Apr 20, 2017 Changes in this version + const DB_NAME + const ORGANIZATIONS_C + const SHORT_DATE_LAYOUT + const USERS_C + var OrganizationIds []bson.ObjectId = []bson.ObjectId + var UserIds []bson.ObjectId = []bson.ObjectId + type Organization struct + DateFounded time.Time + Id bson.ObjectId + Location string + Name string + type Organization_v2 struct + DateFounded time.Time + Headquarters string + Id bson.ObjectId + Name string + type SampleMongoDbMigrator struct + func (r *SampleMongoDbMigrator) DbName() string + func (r *SampleMongoDbMigrator) V001_init_organizations_down(session *mgo.Session) error + func (r *SampleMongoDbMigrator) V001_init_organizations_up(session *mgo.Session) error + func (r *SampleMongoDbMigrator) V001_init_users_down(session *mgo.Session) error + func (r *SampleMongoDbMigrator) V001_init_users_up(session *mgo.Session) error + func (r *SampleMongoDbMigrator) V001_method_with_wrong_signature_down(session *mgo.Session) (bool, error) + func (r *SampleMongoDbMigrator) V001_method_with_wrong_signature_up(s string) error + func (r *SampleMongoDbMigrator) V002_change_user_cleo_to_cleopatra_down(session *mgo.Session) error + func (r *SampleMongoDbMigrator) V002_change_user_cleo_to_cleopatra_up(session *mgo.Session) error + func (r *SampleMongoDbMigrator) V002_organizations_rename_location_field_to_headquarters_down(session *mgo.Session) error + func (r *SampleMongoDbMigrator) V002_organizations_rename_location_field_to_headquarters_up(session *mgo.Session) error + type User struct + Id bson.ObjectId + Name string