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

Leandro Nunes gitlab at mg.gitlab.com
Tue Jun 5 22:39:54 BRT 2018


Leandro Nunes started a new discussion on db/migrate/20180604140454_add_order_to_articles.rb:

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

@gabrielssilva I suggest you to rename the field article_order to position. Some rails gems use a column called position to automatically reorder elements. One example is https://github.com/swanandp/acts_as_list

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


More information about the Noosfero-dev mailing list