mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Add Paper model, Paper.import_from_csv
This commit is contained in:
parent
f661631dd9
commit
d39f00165e
4 changed files with 56 additions and 1 deletions
17
db/migrate/20150413193656_create_papers.rb
Normal file
17
db/migrate/20150413193656_create_papers.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
class CreatePapers < ActiveRecord::Migration def change
|
||||
create_table :papers do |t|
|
||||
t.string :name
|
||||
t.string :url
|
||||
t.string :reference
|
||||
t.string :name
|
||||
t.datetime :published_at
|
||||
t.datetime :scraped_at
|
||||
t.string :paper_type
|
||||
t.string :originator
|
||||
t.text :resolution
|
||||
t.text :content
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue