Sha256: e6f7e64bd2cf3d89b7a36f87ca49aa3d8d940faf7317cd85d0777d6e93e3ad94
Contents?: true
Size: 338 Bytes
Versions: 35
Compression:
Stored size: 338 Bytes
Contents
class AddDescriptionToTaxons < ActiveRecord::Migration def up # skip this migration if the attribute already exists because of advanced taxon extension return if column_exists?(:taxons, :description) add_column :taxons, :description, :text end def down remove_column :taxons, :description end end
Version data entries
35 entries across 35 versions & 3 rubygems