Skip to content

SQLite3 adapter supports expression indexes#33874

Merged
rafaelfranca merged 1 commit into
rails:masterfrom
gkemmey:sqlite-expression-indexes
Sep 13, 2018
Merged

SQLite3 adapter supports expression indexes#33874
rafaelfranca merged 1 commit into
rails:masterfrom
gkemmey:sqlite-expression-indexes

Conversation

@gkemmey
Copy link
Copy Markdown
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.

2 participants