mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Make add_column use the options hash with the Sqlite Adapter. Closes #6464 [obrie]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
c08997405d
commit
53a97e9d61
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Make add_column use the options hash with the Sqlite Adapter. Closes #6464 [obrie]
|
||||
|
||||
* Document other options available to migration's add_column. #6419 [grg]
|
||||
|
||||
* MySQL: all_hashes compatibility with old MysqlRes class. #6429 [Jeremy Kemper]
|
||||
|
|
|
@ -231,7 +231,7 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
def add_column(table_name, column_name, type, options = {}) #:nodoc:
|
||||
super(table_name, column_name, type, options = {})
|
||||
super(table_name, column_name, type, options)
|
||||
# See last paragraph on http://www.sqlite.org/lang_altertable.html
|
||||
execute "VACUUM"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue