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

Allow unmanaged autogenerated sequence names #2345

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 7, 2023

  1. Allow unmanaged autogenerated sequence names

    To still support primary keys through db triggers, without adding back in
    support for generating and maintaining them with migrations, add an
    configuration boolen:
    
        unmanaged_autogenerated_sequences = false # default
    
    Which can be used in an initializer file. When set to `true` there will not be
    an exception raised when the sequence name is defined in the model with the
    previously supported value:
    
       self.sequence_name = :autogenerated
    
    This option allows for dbs managed outside of the application to use triggers
    for primary keys. Without the `autogenerated` option an error is raised when
    inserting the record:
    
        ORA-02289: sequence does not exist
    the-undefined authored and matthewtusker committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    044ca74 View commit details
    Browse the repository at this point in the history