Sha256: cd99bab919a81a60243386b50752557308df9be49dc67219edc76b0f01d3b612
Contents?: true
Size: 501 Bytes
Versions: 4
Compression:
Stored size: 501 Bytes
Contents
class TranslateRefineryImages < ActiveRecord::Migration[4.2] 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
4 entries across 4 versions & 1 rubygems