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