Files
nairobi/db/migrate/20180702060913_create_links.rb
Javi Martín c43b0fea64 Use Rails 5 conventions in Dashboard
These models and migrations were added on a branch based on Rails 4.
2019-04-29 13:08:43 -05:00

13 lines
279 B
Ruby

class CreateLinks < ActiveRecord::Migration[4.2]
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