mirror of
https://github.com/neocities/neocities.git
synced 2025-07-20 17:46:05 +02:00
restrict comments for new users that haven't updated their site
This commit is contained in:
parent
305bb71aa3
commit
96e277c331
6 changed files with 63 additions and 18 deletions
9
migrations/043_add_commenting_allowed_flag.rb
Normal file
9
migrations/043_add_commenting_allowed_flag.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_column :sites, :commenting_allowed, :boolean, default: false
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_column :sites, :commenting_allowed
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue