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

Ignore generated columns #15

Closed
cmer opened this issue Dec 5, 2022 · 2 comments
Closed

Ignore generated columns #15

cmer opened this issue Dec 5, 2022 · 2 comments

Comments

@cmer
Copy link
Contributor

cmer commented Dec 5, 2022

Is there an easy way to ignore specific columns, specifically generated columns?

Error:
BasicsTest#test_basic_runthrough:
ActiveRecord::StatementInvalid: PG::GeneratedAlways: ERROR:  cannot insert a non-DEFAULT value into column "full_name"
DETAIL:  Column "full_name" is a generated column.

    test/system/basics_test.rb:26:in `block (2 levels) in init_seeds'
    test/system/basics_test.rb:25:in `each'
    test/system/basics_test.rb:25:in `block in init_seeds'
    test/system/basics_test.rb:19:in `init_seeds'
    test/system/basics_test.rb:37:in `block in <class:BasicsTest>'
@cmer
Copy link
Contributor Author

cmer commented Dec 5, 2022

Does this make sense? #16

@Envek
Copy link
Member

Envek commented Dec 7, 2022

Released in 0.4.0, thanks for the pull request.

@Envek Envek closed this as completed Dec 7, 2022
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

2 participants