Use ActiveRecord as ORM
Replace desc() with order()

- desc\(\:(.*?)\)  ==>  order("$1 DESC")
Replace asc() with order()

- asc\(\:(.*?)\) ==>  order("$1 ASC")
Rewrite User as ActiveRecord
Replace _id with id
Rewrite Article as ActiveRecord
Rewrite Version as ActiveRecord
Rewrite Space as ActiveRecord
Rewrite Order as ActiveRecord
Rewrite Invitation as ActiveRecord
Rewrite ImportTask as ActiveRecord
Rewrite ImportArticle as ActiveRecord
Rewrite ExportTasks as ActiveRecord
Rewrite Attachment as ActiveRecord
Rewrite AlipayNotify as ActiveRecord
Remove migration AddDomainKeepToSpace
Rename CreateAlipayNotify to CreateAlipayNotifies
Replace mongoid with activerecord in locale files
Remove mongoid and relatie gems from Gemfile
Ignore database.yml