From 53a97e9d610c03024b21d5d87681d98b5ed115bf Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Tue, 24 Oct 2006 07:32:18 +0000 Subject: 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 --- activerecord/CHANGELOG | 2 ++ activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 3f7bf9e808..73e4b4fe9b 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -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] diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb index eb57df3d2f..a9d00e8b3f 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb @@ -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 -- cgit v1.2.3