aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNgoc Dao <ngocdaothanh@gmail.com>2009-01-09 08:34:48 +0800
committerrick <technoweenie@gmail.com>2009-01-10 13:10:39 +0800
commit69ddb169c76d1e9ed2a96acd112cdfcdab250bf5 (patch)
tree78c8cb443fd6d8ddd369a0f52d1f7c28cc4aacfa
parentbc013f3a288ad1b4cea11816e3ef37e0a021be91 (diff)
Do not force updated_at
Signed-off-by: rick <technoweenie@gmail.com>
-rw-r--r--lib/acts_as_versioned.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/acts_as_versioned.rb b/lib/acts_as_versioned.rb
index aad3bed1f..01f8669fc 100644
--- a/lib/acts_as_versioned.rb
+++ b/lib/acts_as_versioned.rb
@@ -416,9 +416,7 @@ module ActiveRecord #:nodoc:
t.column version_column, :integer
end
- updated_col = nil
self.versioned_columns.each do |col|
- updated_col = col if !updated_col && %(updated_at updated_on).include?(col.name)
self.connection.add_column versioned_table_name, col.name, col.type,
:limit => col.limit,
:default => col.default,
@@ -433,10 +431,6 @@ module ActiveRecord #:nodoc:
:scale => type_col.scale,
:precision => type_col.precision
end
-
- if updated_col.nil?
- self.connection.add_column versioned_table_name, :updated_at, :timestamp
- end
self.connection.add_index versioned_table_name, versioned_foreign_key
end