* add weapon_stat_modifiers table for ax skills and befoulments * add fk columns for ax modifiers and befoulments, replace has_ax_skills with augment_type * update models for weapon_stat_modifier fks and befoulments * update blueprints for weapon_stat_modifier serialization * update import service for weapon_stat_modifier fks and befoulments * add weapon_stat_modifiers controller and update params for fks * update tests and factories for weapon_stat_modifier fks * fix remaining has_ax_skills and ax_modifier references * add ax_modifier and befoulment_modifier to eager loading * fix ax modifier column naming and migration approach * add game_skill_ids for befoulment modifiers
11 lines
454 B
Ruby
11 lines
454 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FinalizeAxModifierColumns < ActiveRecord::Migration[8.0]
|
|
def change
|
|
# Remove old integer columns (data has been migrated to ax_modifier1_id/ax_modifier2_id FKs)
|
|
remove_column :collection_weapons, :ax_modifier1, :integer
|
|
remove_column :collection_weapons, :ax_modifier2, :integer
|
|
remove_column :grid_weapons, :ax_modifier1, :integer
|
|
remove_column :grid_weapons, :ax_modifier2, :integer
|
|
end
|
|
end
|