Sha256: 097d4e1be360b69e8ea5f02df52421bb6fb3a2d85a21ded2dc7b2b786eaeeb66
Contents?: true
Size: 718 Bytes
Versions: 19
Compression:
Stored size: 718 Bytes
Contents
class LitCreateLitLocalizations < Rails::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[4.2] : ActiveRecord::Migration def up return if table_exists?(:lit_localizations) create_table :lit_localizations do |t| t.integer :locale_id t.integer :localization_key_id t.text :default_value t.text :translated_value t.boolean :is_changed, default: false t.timestamps end add_index :lit_localizations, :locale_id add_index :lit_localizations, :localization_key_id end def down remove_index :lit_localizations, :locale_id remove_index :lit_localizations, :localization_key_id end end
Version data entries
19 entries across 19 versions & 2 rubygems