remove migrate

This commit is contained in:
Joerg Reichert 2023-04-07 21:58:47 +02:00
parent 5506939678
commit 30fb4b37a0
81 changed files with 171 additions and 235656 deletions

View file

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

View file

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

View file

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

View file

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