mirror of
https://github.com/neocities/neocities.git
synced 2025-05-14 08:27:19 +02:00
implement site reporting
This commit is contained in:
parent
5edeba9495
commit
e546b22797
5 changed files with 84 additions and 3 deletions
18
migrations/034_add_reports.rb
Normal file
18
migrations/034_add_reports.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.create_table! :reports do
|
||||
primary_key :id
|
||||
Integer :site_id
|
||||
Integer :reporting_site_id
|
||||
String :type
|
||||
Text :comments
|
||||
Text :action_taken
|
||||
String :ip
|
||||
DateTime :created_at
|
||||
end
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_table :reports
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue