mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01:00
Add paper_searches table
This commit is contained in:
parent
7d2314fb6d
commit
82c2e7e6b8
2 changed files with 18 additions and 1 deletions
10
db/migrate/20151010070158_create_paper_searches.rb
Normal file
10
db/migrate/20151010070158_create_paper_searches.rb
Normal 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
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue