Use Rails 5 conventions in Dashboard

These models and migrations were added on a branch based on Rails 4.
This commit is contained in:
Javi Martín
2019-04-26 15:18:23 +02:00
committed by voodoorai2000
parent 8094417828
commit c43b0fea64
21 changed files with 21 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
class Link < ActiveRecord::Base
class Link < ApplicationRecord
belongs_to :linkable, polymorphic: true
validates :label, presence: true