Fixed migration creation to work with namespaced models, so script/generate 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
This commit is contained in:
parent
fe4d5ea786
commit
a21e86f023
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user