Make Deployment an ActiveRecord