180040: Enterprise geodatabase must use branch versioning in order to add attribute rules.
Description
Branch versioning is required for enterprise geodatabases to implement validation attribute rules.
Learn more about branch versioning
Solution
Configure branch versioning for the target geodatabase by right-clicking the database connection, opening the geodatabase connection properties, and changing the Versioning Type value to Branch.