Sha256: 6d2a54afdaf0cf806132df5c9b043b390eba3b9dc370ea1cc2917b9e59d7ec72
Contents?: true
Size: 496 Bytes
Versions: 7
Compression:
Stored size: 496 Bytes
Contents
class TranslateRefineryImages < ActiveRecord::Migration def self.up begin ::Refinery::Image.create_translation_table!({ image_alt: :string, image_title: :string }, { :migrate_data => true }) rescue NameError warn "Refinery::Image was not defined!" end end def self.down begin Refinery::Image.drop_translation_table! migrate_data: true rescue NameError warn "Refinery::Image was not defined!" end end end
Version data entries
7 entries across 7 versions & 1 rubygems