Sha256: 7b8bbf2d823253ebd157af51f44a489edb29717a99a6d9c9c108afc361615d83

Contents?: true

Size: 406 Bytes

Versions: 8

Compression:

Stored size: 406 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

8 entries across 8 versions & 1 rubygems

Version Path
pwb-1.3.0 db/migrate/20161123124639_create_pwb_translations.rb
pwb-1.2.0 db/migrate/20161123124639_create_pwb_translations.rb
pwb-1.1.1 db/migrate/20161123124639_create_pwb_translations.rb
pwb-1.0.0 db/migrate/20161123124639_create_pwb_translations.rb
pwb-0.1.1 db/migrate/20161123124639_create_pwb_translations.rb
pwb-0.1.0 db/migrate/20161123124639_create_pwb_translations.rb
pwb-0.0.2 db/migrate/20161123124639_create_pwb_translations.rb
pwb-0.0.1 db/migrate/20161123124639_create_pwb_translations.rb