lib/tasks/migration.rake in active_tenant-0.0.2 vs lib/tasks/migration.rake in active_tenant-0.0.3
- old
+ new
@@ -1,21 +1,21 @@
-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
+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