8000 disable comments · adityai/activeadmin-demo@cdc7ff9 · GitHub
[go: up one dir, main page]

Skip to content

Commit cdc7ff9

Browse files
committed
disable comments
We receive ~200 comments per minute. And Heroku tels us about turning of our database. ``` [warning] Database disruption imminent, row limit exceeded for dev database on Heroku app demo-activeadmin 5 days ago The database HEROKU_POSTGRESQL_GOLD_URL on Heroku app demo-activeadmin has exceeded its allocated storage capacity. Immediate action is required. The database contains 52,421 rows, exceeding the Dev plan limit of 10,000. INSERT privileges to the database will be automatically revoked in 7 days. This will cause service failures in most applications dependent on this database. To avoid a disruption to your service, migrate the database to a Hobby Basic ($9/month) or higher database plan: https://devcenter.heroku.com/articles/upgrade-heroku-postgres-with-pgbackups If you are unable to upgrade the database, you should reduce the number of records stored in it. ``` We need less then 2 hours to jump over the 10k limit.
1 parent 0ad9dc5 commit cdc7ff9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

config/initializers/active_admin.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@
8080
# Default:
8181
# config.root_to = 'dashboard#index'
8282

83+
# == Admin Comments
84+
#
85+
# This allows your users to comment on any resource registered with Active Admin.
86+
#
87+
# You can completely disable comments:
88+
config.allow_comments = false
89+
#
90+
# You can disable the menu item for the comments index page:
91+
# config.show_comments_in_menu = false
92+
#
93+
# You can change the name under which comments are registered:
94+
# config.comments_registration_name = 'AdminComment'
95+
8396
# == Batch Actions
8497
# Enable and disable Batch Actions
8598
config.batch_actions = false

0 commit comments

Comments
 (0)
0