Class: CreateTranslationValues

Inherits:
PeakFlowUtils::ApplicationMigration show all
Defined in:
lib/peak_flow_utils/migrations/20150908085500_create_translation_values.rb

Instance Method Summary collapse

Methods inherited from PeakFlowUtils::ApplicationMigration

#connection

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/peak_flow_utils/migrations/20150908085500_create_translation_values.rb', line 2

def change
  create_table :peak_flow_utils_translation_values do |t|
    t.references :translation_key, null: false
    t.string :file_path
    t.string :locale, index: true
    t.string :value
    t.timestamps
  end

  add_foreign_key :peak_flow_utils_translation_values, :peak_flow_utils_translation_keys, column: "translation_key_id"
end