Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save teamon/6224081 to your computer and use it in GitHub Desktop.
Save teamon/6224081 to your computer and use it in GitHub Desktop.
t.references :contract, index: true # works
t.string :actor_uid, index: true # nope
t.index :actor_uid # proper way to add index for non-references field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment