From 82c2e7e6b8b093947067a59c7de5df5767fa5292 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sat, 10 Oct 2015 09:47:52 +0200 Subject: [PATCH] Add paper_searches table --- db/migrate/20151010070158_create_paper_searches.rb | 10 ++++++++++ db/schema.rb | 9 ++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20151010070158_create_paper_searches.rb diff --git a/db/migrate/20151010070158_create_paper_searches.rb b/db/migrate/20151010070158_create_paper_searches.rb new file mode 100644 index 0000000..eef6ae8 --- /dev/null +++ b/db/migrate/20151010070158_create_paper_searches.rb @@ -0,0 +1,10 @@ +class CreatePaperSearches < ActiveRecord::Migration + def change + create_table :paper_searches do |t| + t.string :query + t.string :paper_type + t.string :originator + t.string :sort_by + end + end +end diff --git a/db/schema.rb b/db/schema.rb index bebb6e9..65e1465 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150517152218) do +ActiveRecord::Schema.define(version: 20151010070158) do create_table "importers", force: :cascade do |t| t.string "url" @@ -19,6 +19,13 @@ ActiveRecord::Schema.define(version: 20150517152218) do t.datetime "updated_at", null: false end + create_table "paper_searches", force: :cascade do |t| + t.string "query" + t.string "paper_type" + t.string "originator" + t.string "sort_by" + end + create_table "papers", force: :cascade do |t| t.string "name" t.string "url"