From c650bee03937bd0e741e701f1fe0bfe5cf8e040e Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 12 Aug 2018 07:10:16 -0400 Subject: Add link entry type --- db/migrate/20180811215146_create_links.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 db/migrate/20180811215146_create_links.rb (limited to 'db/migrate') diff --git a/db/migrate/20180811215146_create_links.rb b/db/migrate/20180811215146_create_links.rb new file mode 100644 index 0000000..0e0ca29 --- /dev/null +++ b/db/migrate/20180811215146_create_links.rb @@ -0,0 +1,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 -- cgit 1.4.1