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