You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add option for annotation via attributes api for rails >=5
classMovie < ActiveRecord::Base#added by the_schemas_isattribute:id,:integerattribute:name,:stringattribute:created_at,:datetimeattribute:updated_at,:datetimeend
The text was updated successfully, but these errors were encountered:
This is an interesting idea, haven't thought about it.
What bothers me, though, is as attribute a generic tool, so our cop can't guess: if some attribute doesn't have a correspondence in the schema.rb, is it discrepancy and should be removed, or it is just unrelated usage of attribute API?
That is a downside I can think of. And another one is: somebody unfamiliar with the_schema_is concept when seeing the_schema_is block will guess where to look to understand it; when seeing the attribute :id (which nobody typically does just to "copy" a column definition to a class), they wouldn't know what to think.
Add option for annotation via attributes api for rails >=5
The text was updated successfully, but these errors were encountered: