Commit graph

3 commits

Author SHA1 Message Date
Dennis Schubert
b614237504
Make all current migrations Rails 4.2 based 2017-08-12 15:39:26 +02:00
Benjamin Neff
eb19c327e2
Add ApplicationRecord 2017-08-12 15:39:20 +02:00
Benjamin Neff
88c7c1568d Rewrite migration for participation counter
This migrations runs only if the old 20150404193023_participation_counter
migration has not been run.

The new migration is a lot faster, because it runs after the
participation-cleanup migration has been run, so the participation table
is now a lot smaller for people upgrading from 0.5.x to 0.6.x.

It also doesn't remove manually created participations (without likes,
comments or poll participations on the same post).

Fixes #6786
2016-08-08 20:56:47 +02:00