mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
remove migrate
This commit is contained in:
parent
5506939678
commit
30fb4b37a0
81 changed files with 171 additions and 235656 deletions
|
@ -1,9 +0,0 @@
|
|||
class CreateUsers < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.string :email
|
||||
t.timestamps
|
||||
end
|
||||
add_index :users, :email, unique: true
|
||||
end
|
||||
end
|
|
@ -1,24 +0,0 @@
|
|||
class CreatePapers < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :papers do |t|
|
||||
# t.string :name
|
||||
t.string :url
|
||||
t.string :reference
|
||||
t.string :name
|
||||
t.string :body
|
||||
t.datetime :published_at
|
||||
t.datetime :scraped_at
|
||||
t.string :paper_type
|
||||
t.string :originator
|
||||
t.text :resolution
|
||||
t.text :content
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index(:papers, :reference)
|
||||
add_index(:papers, :originator)
|
||||
add_index(:papers, :body)
|
||||
add_index(:papers, %i[reference body], unique: true)
|
||||
end
|
||||
end
|
|
@ -1,8 +0,0 @@
|
|||
class CreateImporters < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :importers do |t|
|
||||
t.string :url
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,10 +0,0 @@
|
|||
class CreatePaperSearches < ActiveRecord::Migration[4.2]
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue