app/actions/revision_create.rb
Method create
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def create(app:, droplet_guid:, environment_variables:, description:, commands_by_process_type:, user_audit_info:)
RevisionModel.db.transaction do
next_version = calculate_next_version(app)
if (existing_revision_for_version = RevisionModel.find(app: app, version: next_version))