Sha256: 475fc0bc38860b6d30482020d3da1e252190b8d986743810be21bded5227a87d
Contents?: true
Size: 621 Bytes
Versions: 35
Compression:
Stored size: 621 Bytes
Contents
class AddIconToTaxons < ActiveRecord::Migration def up # skip this migration if the attribute already exists because of advanced taxon extension return if column_exists?(:taxons, :icon_file_name) add_column :taxons, :icon_file_name, :string add_column :taxons, :icon_content_type, :string add_column :taxons, :icon_file_size, :integer add_column :taxons, :icon_updated_at, :datetime end def down remove_column :taxons, :icon_file_name remove_column :taxons, :icon_content_type remove_column :taxons, :icon_file_size remove_column :taxons, :icon_updated_at end end
Version data entries
35 entries across 35 versions & 3 rubygems