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

Version Path
enju_bookmark-0.3.0.beta.1 spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
enju_message-0.3.0.beta.1 spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
enju_leaf-1.3.0.beta.2 spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
enju_manifestation_viewer-0.3.0.beta.2 spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
enju_manifestation_viewer-0.3.0.beta.1 spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
enju_library-0.3.0.beta.2 db/migrate/20151213072705_add_footer_banner_to_library_group.rb
enju_seed-0.3.0.beta.6 spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
enju_biblio-0.3.0.beta.2 spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb