Sha256: 85169c042d0c0a5ce9f248ddcddeee0c35a2d3f0f38a567c121f043395b39ff9
Contents?: true
Size: 600 Bytes
Versions: 87
Compression:
Stored size: 600 Bytes
Contents
module Inferno module Utils class Migration def run db = Inferno::Application['db.connection'] migration_path = File.join(Inferno::Application.root, 'lib', 'inferno', 'db', 'migrations') Sequel::Migrator.run(db, migration_path) if ENV['APP_ENV'] == 'development' # rubocop:disable Style/GuardClause schema_path = File.join(Inferno::Application.root, 'lib', 'inferno', 'db', 'schema.rb') db.extension :schema_dumper File.open(schema_path, 'w') { |f| f.print(db.dump_schema_migration) } end end end end end
Version data entries
87 entries across 87 versions & 1 rubygems