Sha256: ffa66969f244f5d5a9fded640d7cddec6cd465a2b3295d452761cc0acd4d387b

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

class CreateTranslatedWords < ActiveRecord::Migration
  def change
    create_table(:translated_words) do |t|
      t.string :translatable_type, null: false
      t.integer :translatable_id, null: false
      t.string :key, null: false
      t.string :locale, null: false
      t.string :value, null: false
      t.index [:translatable_type, :translatable_id, :key, :locale], name: 'translated_word', unique: true
      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ar-translatable-0.2.0 db/migrate/20140625163354_create_translated_words.rb