Search code examples
ruby-on-railsproduction-environment

Can i remove schema.rb in production


Is this file for informational purposes ?

Can it be removed in production ?


Solution

  • The schema.rb is used when you execute rake db:schema:load. If you are absolutely sure you are not going to execute this Rake task in production, then yes, you could remove it.

    I'm unsure why you'd want to take the time to remove it explicitly, though.