Sha256: 1c98bb7048055edb9d71d7a0990a32c7b3d4f07f059f0b68cef9dbf7e7bbc037

Contents?: true

Size: 319 Bytes

Versions: 27

Compression:

Stored size: 319 Bytes

Contents

class TranslateWeelerSeos < ActiveRecord::Migration
  def self.up
    Weeler::Seo.create_translation_table!({
      title: :string,
      description: :text,
      keywords: :text
    }, {
      :migrate_data => true
    })
  end

  def self.down
    Weeler::Seo.drop_translation_table! :migrate_data => true
  end
end

Version data entries

27 entries across 15 versions & 1 rubygems

Version Path
weeler-2.1.0 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb
weeler-2.0.1 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb
weeler-2.0.0 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb
weeler-1.6.0 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb
weeler-1.6.0 spec/dummy/db/migrate/20140123083707_translate_weeler_seos.rb
weeler-1.5.4 spec/dummy/db/migrate/20140123083707_translate_weeler_seos.rb
weeler-1.5.4 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb
weeler-1.5.2 spec/dummy/db/migrate/20140123083707_translate_weeler_seos.rb
weeler-1.5.2 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb
weeler-1.5.1 spec/dummy/db/migrate/20140123083707_translate_weeler_seos.rb
weeler-1.5.1 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb
weeler-1.4.0 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb
weeler-1.4.0 spec/dummy/db/migrate/20140123083707_translate_weeler_seos.rb
weeler-1.2.0 spec/dummy/db/migrate/20140123083707_translate_weeler_seos.rb
weeler-1.2.0 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb
weeler-1.1.0 spec/dummy/db/migrate/20140123083707_translate_weeler_seos.rb
weeler-1.1.0 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb
weeler-1.0.4 spec/dummy/db/migrate/20140123083707_translate_weeler_seos.rb
weeler-1.0.4 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb
weeler-1.0.3 lib/generators/weeler/templates/migrations/translate_weeler_seos.rb