2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/peak_flow_utils/migrations/20150908090800_create_handler_texts.rb', line 2
def change
create_table :peak_flow_utils_handler_texts do |t|
t.belongs_to :handler, null: false
t.belongs_to :translation_key, index: false, null: false
t.belongs_to :group, null: false
t.string :key_show
t.string :file_path
t.integer :line_no
t.string :full_path, index: true
t.string :dir
t.string :default
t.timestamps
end
add_index :peak_flow_utils_handler_texts, :handler_id, name: "index_handler_translations_handler_id"
add_foreign_key :peak_flow_utils_handler_texts, :peak_flow_utils_handlers, column: "handler_id"
add_foreign_key :peak_flow_utils_handler_texts, :peak_flow_utils_translation_keys, column: "translation_key_id"
add_foreign_key :peak_flow_utils_handler_texts, :peak_flow_utils_groups, column: "group_id"
end
|