about summary refs log tree commit diff stats
path: root/db/migrate/20180811215146_create_links.rb
blob: 0e0ca2974712e33481e98900aae4e1abd8446292 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class CreateLinks < ActiveRecord::Migration[5.1]
  def change
    create_table :links do |t|
      t.string :title, null: false
      t.string :url, null: false

      t.timestamps
    end
  end
end