class Hanami::DbSchemaDump::Command

Public Instance Methods

call(*) click to toggle source
# File lib/hanami/db_schema_dump.rb, line 6
def call(*)
  if ENV["HANAMI_ENV"] == "development"
    system("pg_dump -s --no-owner --no-privileges #{ENV.fetch('DATABASE_URL')} > db/structure.sql")
  end
end