"Fossies" - the Fresh Open Source Software Archive

Member "discourse-3.1.3/config/initializers/000-post_migration.rb" (9 Nov 2023, 211 Bytes) of package /linux/www/discourse-3.1.3.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 # frozen_string_literal: true
    3 unless Discourse.skip_post_deployment_migrations?
    4   ActiveRecord::Tasks::DatabaseTasks.migrations_paths << Rails
    5     .root
    6     .join(Discourse::DB_POST_MIGRATE_PATH)
    7     .to_s
    8 end