Sha256: 3d2599e5ed971423955c5f0f97ea8358337ea3676a9852d15e79e90d981efbd0
Contents?: true
Size: 639 Bytes
Versions: 34
Compression:
Stored size: 639 Bytes
Contents
# This migration comes from enju_library_engine (originally 20151213070943) class AddTranslationTableToLibraryGroup < ActiveRecord::Migration def up if defined?(Globalize) LibraryGroup.create_translation_table!({ login_banner: :text }, { migrate_data: true }) end if defined?(AwesomeHstoreTranslate) add_column :library_groups, :login_banner, :hstore end end def down if defined?(Globalize) LibraryGroup.drop_translation_table! migrate_data: true end if defined?(AwesomeHstoreTranslate) remove_column :library_groups, :login_banner end end end
Version data entries
34 entries across 30 versions & 13 rubygems