Permalink
Browse files

ServiceMerchant now conforms to Rails plugin structure

service_merchant:[create|drop]_all_tables rake tasks are exposed to public
  • Loading branch information...
1 parent 9dad2a3 commit a6a4d709638f9322d56da80ec18d46e0cf911f73 Alex Lebedev committed Nov 3, 2008
Showing with 11 additions and 0 deletions.
  1. +1 −0 init.rb
  2. +10 −0 tasks/service_merchant.rake
View
@@ -0,0 +1 @@
+require File.dirname(__FILE__) + '/subscription_management/subscription_management'
@@ -0,0 +1,10 @@
+require File.dirname(__FILE__)+'/../tracker/tasks/schema'
+require File.dirname(__FILE__)+'/../subscription_management/tasks/schema'
+
+namespace :service_merchant do
+ desc "Create all tables"
+ task :create_all_tables => ["tracker:create_tables", "subscription:create_tables"]
+
+ desc "Drop all tables"
+ task :drop_all_tables => ["subscription:drop_tables", "tracker:drop_tables"]
+end

0 comments on commit a6a4d70

Please sign in to comment.