Sha256: a06f48f783d4068f743f06a9e16aa8a83fe72297c305a259586f9090ed1a76c0

Contents?: true

Size: 334 Bytes

Versions: 7

Compression:

Stored size: 334 Bytes

Contents

class CreateJobTranslations < ActiveRecord::Migration
  def up
    Refinery::Jobs::Job.create_translation_table!({
      :title => :string,
      :description => :text,
      :slug => :string
    }, {
      :migrate_data => true
    })
  end

  def down
    Refinery::Jobs::Job.drop_translation_table! :migrate_data => true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refinerycms-jobs-3.0.6 db/migrate/20140930184502_create_job_translations.rb
refinerycms-jobs-3.0.5 db/migrate/20140930184502_create_job_translations.rb
refinerycms-jobs-3.0.4 db/migrate/20140930184502_create_job_translations.rb
refinerycms-jobs-3.0.3 db/migrate/20140930184502_create_job_translations.rb
refinerycms-jobs-3.0.2 db/migrate/20140930184502_create_job_translations.rb
refinerycms-jobs-3.0.1 db/migrate/20140930184502_create_job_translations.rb
refinerycms-jobs-3.0.0 db/migrate/20140930184502_create_job_translations.rb