Sha256: 8033957f6cb4de0aad218021bda8c5d2ac59b015c966e7d21c45adf5ab169222
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
require 'lol_dba' require 'lol_dba/sql_migrations/sql_generator' namespace :db do desc 'Display a migration for adding/removing all necessary indexes based on associations' task find_indexes: :environment do LolDba::IndexFinder.run end desc 'Generate .sql files for your migrations inside db/migrate_sql folder' task :migrate_sql, [:which] => :environment do |_t, args| args.with_defaults(which: 'all') LolDba::SqlGenerator.run(args[:which]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lol_dba-2.1.7 | lib/tasks/lol_dba.rake |