Sha256: 885f65dc5e98229052981390ee6399f1d60cf144183adf82584a5ca2a61b2e00

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

class CreatePwbTranslations < ActiveRecord::Migration[5.0]
  def change
    create_table :translations do |t|
      t.string :locale
      t.string :key
      t.text   :value
      t.text   :interpolations
      t.boolean :is_proc, default: false

      # TODO - use tag to group translations
      t.string :tag

      t.timestamps
    end
  end

  def self.down
    drop_table :translations
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pwb-1.4.0 db/migrate/20161123124639_create_pwb_translations.rb