Backport dev env check for storage settings deprecation
What does this MR do?
Makes it equal to EE side: https://gitlab.com/gitlab-org/gitlab-ee/blob/e4c31f2577ae08f4e1fdee35e439ea3ffda2cff4/config/initializers/deprecations.rb#L3-5
Makes it equal to EE side: https://gitlab.com/gitlab-org/gitlab-ee/blob/e4c31f2577ae08f4e1fdee35e439ea3ffda2cff4/config/initializers/deprecations.rb#L3-5