From c650bee03937bd0e741e701f1fe0bfe5cf8e040e Mon Sep 17 00:00:00 2001
From: Kelly Rauchenberger <fefferburbia@gmail.com>
Date: Sun, 12 Aug 2018 07:10:16 -0400
Subject: Add link entry type

---
 db/migrate/20180811215146_create_links.rb | 10 ++++++++++
 db/schema.rb                              |  9 ++++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 db/migrate/20180811215146_create_links.rb

(limited to 'db')

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
diff --git a/db/schema.rb b/db/schema.rb
index 192c9c1..58891d3 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
 #
 # It's strongly recommended that you check this file into your version control system.
 
-ActiveRecord::Schema.define(version: 20180707142420) do
+ActiveRecord::Schema.define(version: 20180811215146) do
 
   create_table "blogs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin" do |t|
     t.string "title"
@@ -35,6 +35,13 @@ ActiveRecord::Schema.define(version: 20180707142420) do
     t.index ["type"], name: "index_ckeditor_assets_on_type"
   end
 
+  create_table "links", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t|
+    t.string "title", null: false
+    t.string "url", null: false
+    t.datetime "created_at", null: false
+    t.datetime "updated_at", null: false
+  end
+
   create_table "pokeviewer_abilities", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin" do |t|
     t.string "name", null: false
     t.string "description", null: false
-- 
cgit 1.4.1