activerecord-reputation-system 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
data/lib/generators/reputation_system/templates/change_reputation_messages_index_to_unique.rb
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
# limitations under the License.
|
15
15
|
##
|
16
16
|
|
17
|
-
class
|
17
|
+
class ChangeReputationMessagesIndexUnique < ActiveRecord::Migration
|
18
18
|
def self.up
|
19
19
|
remove_index :rs_reputation_messages, :name => "index_rs_reputation_messages_on_receiver_id_and_sender"
|
20
20
|
add_index :rs_reputation_messages, [:receiver_id, :sender_id, :sender_type], :name => "index_rs_reputation_messages_on_receiver_id_and_sender", :unique => true
|