Sha256: 2681a932fef7b6ba8935d6f11fe77a66dc17f0cc2371c682555fd42aeba48465
Contents?: true
Size: 459 Bytes
Versions: 11
Compression:
Stored size: 459 Bytes
Contents
class CreateLocalizations < ActiveRecord::Migration def change create_table :localizations do |t| t.references :localizable, polymorphic: true t.string :name t.string :locale t.text :value, limit: 16_777_215 t.timestamps null: false t.index([:localizable_id, :localizable_type, :name, :locale], name: "index_localizations_on_locale") t.index [:localizable_id, :localizable_type] end end end
Version data entries
11 entries across 11 versions & 1 rubygems