def self.up
add_column 'rule_failures', 'created_at', :datetime, :null => true
add_column 'rule_failures', 'checksum', :string , :null => true, :limit => 1000
+ RuleFailure.reset_column_information()
end
end
def self.remove_measures_column(colname)
begin
remove_column :project_measures, colname
+ ProjectMeasure.reset_column_information()
rescue
# already removed
end
end
def self.add_measures_column(colname)
- ProjectMeasure.reset_column_information()
unless ProjectMeasure.column_names.include?(name)
add_column(:project_measures, colname, :decimal, :null => true, :precision => 30, :scale => 20)
+ ProjectMeasure.reset_column_information()
end
end
end