mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-06 16:31:57 +08:00
It deletes the MappingDB before executing the import. That's useful during development when you repeat the import multiple times.
15 lines
275 B
Ruby
15 lines
275 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Migrations::CLI
|
|
class ImportCommand
|
|
def initialize(options)
|
|
@options = options
|
|
end
|
|
|
|
def execute
|
|
::Migrations.load_rails_environment(quiet: true)
|
|
|
|
::Migrations::Importer.execute(@options)
|
|
end
|
|
end
|
|
end
|