mirror of
https://github.com/github/rails.git
synced 2026-02-01 01:34:57 -05:00
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:
@@ -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 @@ module Rails
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user