restrict comments for new users that haven't updated their site

This commit is contained in:
Kyle Drake 2014-09-05 22:23:23 -07:00
parent 305bb71aa3
commit 96e277c331
6 changed files with 63 additions and 18 deletions

View 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