Advertisement
Guest User

Untitled

a guest
May 30th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. indexes: [
  2. {
  3. using: 'GIN',
  4. fields: ['field']
  5. }
  6. ]
  7.  
  8. // CREATE INDEX field ON $modelTable USING gin (field);
  9.  
  10. indexes: [
  11. {
  12. using: 'GIN',
  13. operator: 'jsonb_path_ops',
  14. fields: ['field']
  15. }
  16. ]
  17.  
  18. // CREATE INDEX field ON $modelTable USING gin (field jsonb_path_ops);
  19.  
  20. {
  21. field: {
  22. type: Sequelize.JSONB,
  23. index: true
  24. }
  25. }
  26.  
  27. Should be converted to:
  28.  
  29. indexes: [
  30. {
  31. using: 'GIN',
  32. fields: ['field']
  33. }
  34. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement