mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-20 13:50:46 +00:00
- Added `Cybok` model to manage CyBOK entries associated with missions. - Implemented `by_collection` scope in `Mission` model for filtering missions by collection. - Updated `missions_controller` to filter missions based on the selected collection. - Introduced `CybokSyncService` for syncing CyBOK data from mission metadata to the database. - Created new views and partials for displaying CyBOK information with tooltips using Tippy.js. - Added metadata fields to `break_escape_missions` for `secgen_scenario` and `collection`. - Enhanced mission seeding logic to support new metadata and CyBOK entries. - Added multiple new mission scenarios with associated metadata.
11 lines
320 B
Ruby
11 lines
320 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddMetadataToBreakEscapeMissions < ActiveRecord::Migration[7.0]
|
|
def change
|
|
add_column :break_escape_missions, :secgen_scenario, :string
|
|
add_column :break_escape_missions, :collection, :string, default: 'default'
|
|
|
|
add_index :break_escape_missions, :collection
|
|
end
|
|
end
|