Topic: Rails subscription model with promo code

Currently here is my User -> Subscription Model

    # User Model
    has_many :subscriptions
   
    # Subscription Model
    belongs_to :user

I am wanting to add in the ability for a user to enter in a promo code and have access to the application via the subscription that is tied to the promo code entered. Any suggestions on how to accomplish this?