Add paper_searches table

This commit is contained in:
Lars Henrik Mai 2015-10-10 09:47:52 +02:00
parent 7d2314fb6d
commit 82c2e7e6b8
2 changed files with 18 additions and 1 deletions

View file

@ -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

View file

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # 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| create_table "importers", force: :cascade do |t|
t.string "url" t.string "url"
@ -19,6 +19,13 @@ ActiveRecord::Schema.define(version: 20150517152218) do
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
end 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| create_table "papers", force: :cascade do |t|
t.string "name" t.string "name"
t.string "url" t.string "url"