Sha256: 12afe3773b1c02ee8e6fa808bdb1a474d47a6f56f06c189a9c09967f1ea391c2
Contents?: true
Size: 722 Bytes
Versions: 31
Compression:
Stored size: 722 Bytes
Contents
class CreateReleafTranslations < ActiveRecord::Migration def change create_table :releaf_i18n_entries do |t| t.string :key, null: false t.timestamps null: false end add_index :releaf_i18n_entries, :key create_table :releaf_i18n_entry_translations do |t| t.integer :i18n_entry_id, null: false t.string :locale, null: false, limit: 5 t.text :text t.timestamps null: false end add_index :releaf_i18n_entry_translations, :locale add_index :releaf_i18n_entry_translations, :i18n_entry_id add_index :releaf_i18n_entry_translations, [:locale, :i18n_entry_id], unique: true, name: :index_releaf_i18n_entry_translations_on_locale_i18n_entry_id end end
Version data entries
31 entries across 31 versions & 1 rubygems