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

Support t.unique_constraint in db/schema.rb #130

Open
Kagemaru opened this issue Feb 8, 2024 · 0 comments · May be fixed by #131
Open

Support t.unique_constraint in db/schema.rb #130

Kagemaru opened this issue Feb 8, 2024 · 0 comments · May be fixed by #131

Comments

@Kagemaru
Copy link

Kagemaru commented Feb 8, 2024

Currently, this entry in our db/schema.rb fails:

create_table "test", id: :serial, force: :cascade do |t|
  ...
  t.unique_constraint ["test"], name: "chk_unique_test"
end

With the following error message:

NoMethodError: undefined method `unique_constraint' for #<ActiveRecord::ConnectionAdapters::NullDBAdapter::TableDefinition:0x00007f7d96f662e0 
@Kagemaru Kagemaru linked a pull request Feb 8, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant