[Git][noosfero/noosfero][master] 2 commits: circles: fix index uniqueness constraint

Rodrigo Souto gitlab at mg.gitlab.com
Fri Nov 10 14:48:54 BRST 2017


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
b0613c45 by Rodrigo Souto at 2017-11-06T11:49:18-03:00
circles: fix index uniqueness constraint

- - - - -
d0963718 by Rodrigo Souto at 2017-11-10T16:48:44+00:00
Merge branch 'circle-index-constraint' into 'master'

circles: fix index uniqueness constraint

See merge request noosfero/noosfero!1346
- - - - -


1 changed file:

- + db/migrate/20171106144524_fix_circle_index_constraint.rb


Changes:

=====================================
db/migrate/20171106144524_fix_circle_index_constraint.rb
=====================================
--- /dev/null
+++ b/db/migrate/20171106144524_fix_circle_index_constraint.rb
@@ -0,0 +1,6 @@
+class FixCircleIndexConstraint < ActiveRecord::Migration
+  def change
+    remove_index :circles, :name => "circles_composite_key_index"
+    add_index :circles, [:person_id, :name, :profile_type], :name => "circles_composite_key_index", :unique => true
+  end
+end



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/3c5273bf84a1642f666632b5e87f768dc02fafc2...d09637185d62310bd1e60354e74e5803bed3ec72

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/3c5273bf84a1642f666632b5e87f768dc02fafc2...d09637185d62310bd1e60354e74e5803bed3ec72
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20171110/c6c57b22/attachment.html>


More information about the Noosfero-dev mailing list