acts_as_versionable 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,7 @@
|
|
1
1
|
<%
|
2
2
|
versions_table = "#{@model_name}_versions".downcase
|
3
|
-
rejects_columns =
|
4
|
-
columns = @model.classify.constantize.columns
|
5
|
-
#columns = @model.classify.constantize.content_columns.reject { |c| c.type == :datetime }
|
3
|
+
rejects_columns = %w(id created_at updated_at current_version)
|
4
|
+
columns = @model.classify.constantize.columns.reject { |c| rejects_columns.include?(c.name) }
|
6
5
|
%>
|
7
6
|
class <%= migration_name %> < ActiveRecord::Migration
|
8
7
|
def self.up
|