Files
grecia/db/migrate/20180702060913_create_links.rb
Juan Salvador Pérez García 3c3f60dfcc Implements #173
Public view for suggested actions as well as resources has been
completelly redesigned.

Private side for this feature has been adapted as well in order to meet
the requirements.
2018-07-17 17:58:22 +02:00

13 lines
274 B
Ruby

class CreateLinks < ActiveRecord::Migration
def change
create_table :links do |t|
t.string :label
t.string :url
t.boolean :open_in_new_tab
t.references :linkable, polymorphic: true, index: true
t.timestamps null: false
end
end
end