Sha256: e5e517ab999b054e243053f7b8a88f6be33b1bcdf9a03154c1d10c2e535ed347

Contents?: true

Size: 577 Bytes

Versions: 10

Compression:

Stored size: 577 Bytes

Contents

class BaseTranslations < ActiveRecord::Migration
  def self.up
    StaticPage.create_translation_table! title: :string, content: :text
    Header.create_translation_table! title: :string, h1: :string, keywords: :string, description: :text, seo_block: :text
    Structure.create_translation_table! title: :string, redirect_url: :string
    Asset.create_translation_table! name: :string, alt: :string
  end

  def self.down
    StaticPage.drop_translation_table!
    Header.drop_translation_table!
    Structure.drop_translation_table!
    Asset.drop_translation_table!
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ab_admin-0.9.0 db/migrate/20130101000007_base_translations.rb
ab_admin-0.8.3 db/migrate/20130101000007_base_translations.rb
ab_admin-0.8.2 db/migrate/20130101000007_base_translations.rb
ab_admin-0.8.1 db/migrate/20130101000007_base_translations.rb
ab_admin-0.8.0 db/migrate/20130101000007_base_translations.rb
ab_admin-0.7.0 db/migrate/20130101000007_base_translations.rb
ab_admin-0.6.1 db/migrate/20130101000007_base_translations.rb
ab_admin-0.6.0 db/migrate/20130101000007_base_translations.rb
ab_admin-0.5.0 db/migrate/20130101000007_base_translations.rb
ab_admin-0.4.0 db/migrate/20130101000007_base_translations.rb