Sha256: c024d0947794b73a5ddf7b6ac820e3b2aab6193411c5c3c7a683edf891630b1b

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

class CreateTranslations < ActiveRecord::Migration
  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

      t.timestamps
    end

    add_index :translations, [:locale, :key], :unique => true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
i18n-active_record-backend-0.1.0 lib/generators/i18n/active_record/install/templates/migration.rb