Module: CommandTower::Install::Baseline
- Defined in:
- lib/command_tower/install/baseline.rb
Overview
Compact final-schema baseline authored in CommandTower (Phase 5.2).
Hosts receive copies via Rails-native command_tower:install:migrations.
Constant Summary collapse
- ENGINE_MIGRATION_BASENAMES =
%w[ 20260805000001_create_command_tower_users.rb 20260805000002_create_command_tower_user_secrets.rb 20260805000003_create_command_tower_messaging_core.rb 20260805000004_create_messaging_notification_preferences.rb 20260805000005_create_messaging_endpoints_and_pushover_credentials.rb 20260816000001_create_command_tower_audit_events.rb 20260817000001_add_scope_columns_to_command_tower_audit_events.rb 20260817000003_create_command_tower_impersonation_sessions.rb 20260826140000_add_deleted_at_to_users.rb ].freeze
Class Method Summary collapse
- .engine_migration_basenames ⇒ Object
- .host_installed_migrations(host_root = Rails.root) ⇒ Object
- .migrate_dir ⇒ Object
Class Method Details
.engine_migration_basenames ⇒ Object
26 27 28 |
# File 'lib/command_tower/install/baseline.rb', line 26 def engine_migration_basenames Dir.children(migrate_dir).grep(/\.rb\z/).sort end |
.host_installed_migrations(host_root = Rails.root) ⇒ Object
30 31 32 |
# File 'lib/command_tower/install/baseline.rb', line 30 def host_installed_migrations(host_root = Rails.root) Dir.glob(File.join(host_root.to_s, "db/migrate", "*command_tower*.rb")).map { |p| File.basename(p) }.sort end |
.migrate_dir ⇒ Object
22 23 24 |
# File 'lib/command_tower/install/baseline.rb', line 22 def migrate_dir CommandTower::Engine.root.join("db/migrate") end |