Merge pull request #11515 from prathamesh-sonpatki/edit-index-page

Removed information about creating database [ci skip]
Clear named routes when routes.rb is reloaded

Fix an issue where Journey was failing to clear the named routes hash when the
routes were reloaded and since it doesn't overwrite existing routes then if a
route changed but wasn't renamed it kept the old definition. This was being
masked by the optimised url helpers so it only became apparent when passing an
options hash to the url helper.

(cherry picked from commit e5275f9b5924f36f2bdd4dd9ac0a4f420384748f)

Conflicts:
	actionpack/CHANGELOG.md
[Fixes #11512] improves cache size calculation in ActiveSupport::Cache::MemoryStore

Previously, the cache size of `ActiveSupport::Cache::MemoryStore` was calculated
as the sum of the size of its entries, ignoring the size of keys and any data
structure overhead. This could lead to the calculated cache size sometimes being
10-100x smaller than the memory used, e.g., in the case of small values.

The size of a key/entry pair is now calculated via `#cached_size`:

    def cached_size(key, entry)
      key.to_s.bytesize + entry.size + PER_ENTRY_OVERHEAD
    end

The value of `PER_ENTRY_OVERHEAD` is 240 bytes based on an [empirical
estimation](https://gist.github.com/ssimeonov/6047200) for 64-bit MRI on
1.9.3 and 2.0.

Fixes GH#11512 https://github.com/rails/rails/issues/11512

Conflicts:
	activesupport/CHANGELOG.md
backport efeb039 from #11201 fixes #11540 [ci skip]
Merge pull request #11562 from zzak/backport_efeb039

backport efeb039 from #11201 fixes #11540 [ci skip]
Merge pull request #11566 from rajcybage/master

add the missing middleware in command line guides rake about [ci skip]
Conflicts:
	guides/source/command_line.md
Use GeneratedAttribute#column_name if #reference? scaffold_generator in _form view [Fixes #11573]