noosfero | Refactors highlights ordering using article column (!1512)

Gabriel Silva gitlab at mg.gitlab.com
Wed Jun 20 16:00:17 BRT 2018


Gabriel Silva commented on a discussion on db/migrate/20180604140454_add_order_to_articles.rb:

> +class AddOrderToArticles < ActiveRecord::Migration
> +  def up
> +    add_column :articles, :article_order, :integer, default: 0

I spent some time trying to use the `acts_as_list`, but it doesn't deal with position gaps, so it does not fit our use case. Although, I did change to the `position` column, but I'm still performing the reorder manually.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1512#note_82984414
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/20180620/e78a676c/attachment.html>


More information about the Noosfero-dev mailing list