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"