Is there a reason for punchable_type having limit => 20 character string in the db migration?
With nested/name-spaced models, this creates an issue:
Example Punchable class: Internal::Board::Event (22 chars)
ActiveRecord::ValueTooLong: Mysql2::Error: Data too long for column 'punchable_type'
To fix the issue for my purpose, I rolled back the punches migration, removed the character limit, then migrated. No issues so far.
I'd be happy to submit an PR/MR to address this, but want to make sure that 20 char limit isn't there for a specific reason.
Is there a reason for
punchable_typehavinglimit => 20character string in the db migration?With nested/name-spaced models, this creates an issue:
Example Punchable class:
Internal::Board::Event(22 chars)To fix the issue for my purpose, I rolled back the punches migration, removed the character limit, then migrated. No issues so far.
I'd be happy to submit an PR/MR to address this, but want to make sure that 20 char limit isn't there for a specific reason.