db/migrate/0_install.rb~ in commontator-2.0.2 vs db/migrate/0_install.rb~ in commontator-4.0.0
- old
+ new
@@ -14,11 +14,11 @@
t.integer "cached_votes_down", :default => 0
t.timestamps
end
- add_index :commontator_comments, [:creator_type, :creator_id, :thread_id], :name => "index_c_c_on_c_type_and_c_id_and_t_id"
+ add_index :commontator_comments, [:creator_type, :creator_id, :thread_id], :name => 'index_c_c_on_c_type_and_c_id_and_t_id'
add_index :commontator_comments, :thread_id
add_index :commontator_comments, :cached_votes_total
add_index :commontator_comments, :cached_votes_up
add_index :commontator_comments, :cached_votes_down
@@ -30,11 +30,11 @@
t.integer "unread", :null => false, :default => 0
t.timestamps
end
- add_index :commontator_subscriptions, [:subscriber_type, :subscriber_id, :thread_id], :unique => true, :name => "index_c_s_on_s_type_and_s_id_and_t_id"
+ add_index :commontator_subscriptions, [:subscriber_type, :subscriber_id, :thread_id], :unique => true, :name => 'index_c_s_on_s_type_and_s_id_and_t_id'
add_index :commontator_subscriptions, :thread_id
create_table "commontator_threads" do |t|
t.string "commontable_type"
t.integer "commontable_id"
@@ -43,8 +43,8 @@
t.integer "closer_id"
t.timestamps
end
- add_index :commontator_threads, [:commontable_type, :commontable_id], :unique => true
+ add_index :commontator_threads, [:commontable_type, :commontable_id], :unique => true, :name => 'index_c_t_on_c_type_and_c_id'
end
end