Sha256: d2eb5007946342d019fdb74bf44ba566d7de1a318be62a4c3c8bc94675c8a46b
Contents?: true
Size: 729 Bytes
Versions: 149
Compression:
Stored size: 729 Bytes
Contents
# Changes `module_targets.module_detail_id` to `module_targets.detail_id` so that foreign key matches the conventional # name when `Mdm::ModuleDetail` became {Mdm::Module::Detail}. class ChangeForeignKeyInModuleTargets < ActiveRecord::Migration # # CONSTANTS # NEW_COLUMN_NAME= :detail_id OLD_COLUMN_NAME = :module_detail_id TABLE_NAME = :module_targets # Renames `module_targets.detail_id` to `module_targets.module_detail_id`. # # @return [void] def down rename_column TABLE_NAME, NEW_COLUMN_NAME, OLD_COLUMN_NAME end # Rename `module_targets.module_detail_id` to `module_targets.detail_id` # # @return [void] def up rename_column TABLE_NAME, OLD_COLUMN_NAME, NEW_COLUMN_NAME end end
Version data entries
149 entries across 149 versions & 1 rubygems