I am trying to add a field/column to `Spree::Credi...
# support
t
I am trying to add a field/column to
Spree::CreditCard
, but I can't get the table in the database to populate during checkout, or even from the console when doing
Spree::CreditCard.create()
. I have tried adding to
permitted_credit_card_update_attributes
and just about every other possible permitted attribute I could think of. There is no error that I can find. Am I missing somewhere?
k
Spree::CreditCard
is a subclass of
Spree::PaymentSource
, so that’s the table you should be looking for.
t
Ah thanks. I finally figured it out. I had messed up a definition in the Spree::CreditCard methods and made the field an instance method so it wasn't persisting to the database. 😅
👍 1