diff --git a/test/bin/setup-action-models-system-test b/test/bin/setup-action-models-system-test index bcd31ca7f..d88319982 100755 --- a/test/bin/setup-action-models-system-test +++ b/test/bin/setup-action-models-system-test @@ -51,4 +51,17 @@ else echo "Skipping the \`performs-export\` action on this CI node." fi +if [ -z "${CIRCLE_NODE_INDEX}" ] || [ "${CIRCLE_NODE_INDEX}" == "3" ]; then + bundle exec spring rails g model Customer team:references name:string + bin/super-scaffold crud Customer Team name:text_field --sidebar="ti.ti-user" + bundle exec spring rails g model Notification customer:references text:string read:boolean + bin/super-scaffold crud Notification Customer,Team text:text_field read:boolean --sidebar="ti.ti-email" + rails db:migrate + bin/super-scaffold action-model:targets-one-parent MarkAllAsRead Notification Customer + + test/bin/portable-string-replace app/models/notifications/mark_all_as_read_action.rb "# This is where you implement the operation you want to perform on the target." "customer.notifications.update(read: true)" +else + echo "Skipping the \`targets-one-parent\` action on this CI node." +fi + rails db:migrate