Fixed App#domains not existing
Fixed Domain not inheriting from ActiveRecord::Base