Sha256: b6ef532b2df69f4ab3f30b8e925282cfa452b0d7e4fdffacdd5c0a0ace2da857
Contents?: true
Size: 727 Bytes
Versions: 12
Compression:
Stored size: 727 Bytes
Contents
class CreateReleafTranslations < ActiveRecord::Migration[5.0] 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
12 entries across 12 versions & 1 rubygems