Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/deactivate #6

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

MDelarosa1993
Copy link

This pull request implements the CouponsController to handle CRUD operations for coupons within the merchant context. It includes:

Controller Actions: index, show, create, and update methods for managing coupons.
Coupon Model: Validations for uniqueness, presence, and active status.
Serializer: A CouponSerializer to format JSON responses consistently.
Migrations: Creation of the coupons table and addition of a coupon reference in the invoices table.
Factory and Specs: Added FactoryBot setup for coupons and comprehensive RSpec tests for controller actions and model validations.
This ensures a robust and scalable solution for managing merchant coupons in the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant