Sha256: 844b6a0690daca7b757788935af887251e67a335c67625e57fc85808766c8d0a
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 Bytes
Contents
namespace :db do namespace :migrate do desc 'Migrate global db and all tenants' task :all => :environment do ActiveTenant.current.migrate_global ActiveTenant.current.migrate_all end desc 'Migrate only global db' task :global => :environment do ActiveTenant.current.migrate_global end desc 'Migrate all tenants excluding global db' task :tenants => :environment do ActiveTenant.current.migrate_all end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_tenant-0.0.4 | lib/tasks/migration.rake |
active_tenant-0.0.3 | lib/tasks/migration.rake |