Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed migration creation to work with namespaced models, so script/ge…

…nerate model Gallery::Image will use create_table :gallery_images #6327 [BobSilva]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5261 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit a21e86f023812f7dafa6e97d44e281b66e2ac01f 1 parent fe4d5ea
David Heinemeier Hansson dhh authored
Showing with 5 additions and 0 deletions.
  1. +4 −0 railties/CHANGELOG
  2. +1 −0  railties/lib/rails_generator/base.rb
4 railties/CHANGELOG
View
@@ -1,5 +1,9 @@
*SVN*
+* Fixed migration creation to work with namespaced models, so script/generate model Gallery::Image will use create_table :gallery_images #6327 [BobSilva]
+
+* Fixed rename_table on SQLite tables with indexes defined #5942 [brandon@opensoul.org]
+
* Added default timeout setting of 5 seconds to SQLite3 database.yml configurations [DHH]
* Added generated attribute options to script/generate model, like the one found in scaffold_resource and resource [DHH]. Examples:
1  railties/lib/rails_generator/base.rb
View
@@ -183,6 +183,7 @@ def assign_names!(name)
if @class_nesting.empty?
@class_name = @class_name_without_nesting
else
+ @table_name = @class_nesting.underscore << "_" << @table_name
@class_name = "#{@class_nesting}::#{@class_name_without_nesting}"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.