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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite3 adapter supports expression indexes #33874

Merged
merged 1 commit into from
Sep 13, 2018

Conversation

gkemmey
Copy link
Contributor

@gkemmey gkemmey commented Sep 13, 2018

@rafaelfranca I busted something in #33862 rebasing that closed the PR. Sorry about that. Didn't mean for this to become more trouble than it's worth 馃槄

Summary

Adds expression indexes support to SQLite adapter. Example:

create_table :users do |t|
  t.references :account
  t.string :email
end

add_index :users, 'account_id, lower(email)', name: 'index_users_on_account_id_and_email',
                                              unique: true

@rafaelfranca rafaelfranca merged commit c49139d into rails:master Sep 13, 2018
kamipo added a commit that referenced this pull request Sep 14, 2018
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 this pull request may close these issues.

None yet

2 participants