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

[3.1.1] Annotate reads the default value from ActiveRecord::Enum. This bug or feature? #839

Open
denisoster opened this issue Oct 6, 2020 · 2 comments

Comments

@denisoster
Copy link

denisoster commented Oct 6, 2020

Annotate reads the default value from ActiveRecord::Enum
This bug or feature?

ALTER TABLE table_name ADD field INTEGER NOT NULL DEFAULT 0;

#  field      :integer          default("UDP"), not null

Version

  • annotate v3.1.1
  • Rails 6.0.3.3
  • ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-darwin19]

@drwl @sashabelozerov @ctran

@ixti
Copy link

ixti commented Sep 7, 2023

I think this is a bug. Because in DB default is definitely not a string. I'm affected by this as well :((

@drwl
Copy link
Collaborator

drwl commented Sep 8, 2023

@ixti in case you're curious, I talk about this on my repo drwl/annotaterb#57. tl;dr if it was easy to support db level annotations then I would.

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

No branches or pull requests

3 participants