Sha256: a03b3ba9462414058a9d9272ad0470c4aadf788ce718374103df2049e6b5ac4e

Contents?: true

Size: 339 Bytes

Versions: 12

Compression:

Stored size: 339 Bytes

Contents

class RemoveTranslatedAttributes < ActiveRecord::Migration
  def self.globalizable_content
    Globalize2Extension::GLOBALIZABLE_CONTENT
  end
  
  def self.up
    globalizable_content.each do |model, columns|
      columns.each do |column|
        remove_column model.table_name, column
      end
    end
  end

  def self.down
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
radiant-globalize2-extension-0.3.2 db/migrate/20090729085422_remove_translated_attributes.rb
radiant-globalize2-extension-0.3.1 db/migrate/20090729085422_remove_translated_attributes.rb
radiant-globalize2-extension-0.3.0 db/migrate/20090729085422_remove_translated_attributes.rb
radiant-globalize2-extension-0.2.8 db/migrate/20090729085422_remove_translated_attributes.rb
radiant-globalize2-extension-0.2.7 db/migrate/20090729085422_remove_translated_attributes.rb
radiant-globalize2-extension-0.2.6 db/migrate/20090729085422_remove_translated_attributes.rb
radiant-globalize2-extension-0.2.5 db/migrate/20090729085422_remove_translated_attributes.rb
radiant-globalize2-extension-0.2.4 db/migrate/20090729085422_remove_translated_attributes.rb
radiant-globalize2-extension-0.2.3 db/migrate/20090729085422_remove_translated_attributes.rb
radiant-globalize2-extension-0.2.2 db/migrate/20090729085422_remove_translated_attributes.rb
radiant-globalize2-extension-0.2.1 db/migrate/20090729085422_remove_translated_attributes.rb
radiant-globalize2-extension-0.2.0 db/migrate/20090729085422_remove_translated_attributes.rb