Sha256: 548789dcbfe2ad680cb32d065161a76624260f8e61d883a9894afb5064722b30
Contents?: true
Size: 586 Bytes
Versions: 148
Compression:
Stored size: 586 Bytes
Contents
# This migration comes from enju_library_engine (originally 20151213072705) class AddFooterBannerToLibraryGroup < ActiveRecord::Migration[4.2] def up if defined?(Globalize) LibraryGroup.add_translation_fields! footer_banner: :text end if defined?(AwesomeHstoreTranslate) add_column :library_groups, :footer_banner, :hstore end end def down if defined?(Globalize) remove_column :library_group_translations, :footer_banner end if defined?(AwesomeHstoreTranslate) remove_column :library_groups, :footer_banner end end end
Version data entries
148 entries across 148 versions & 21 rubygems