Permalink
Browse files

Getting sample app running

  • Loading branch information...
1 parent 78dd8db commit 1f031b5a79480c1e489cdfce9d5173e0ca4b4ae6 ben wiseley committed Jun 23, 2009
View
@@ -0,0 +1,5 @@
+sample_app/log/*.log
+sample_app/log/*.pid
+sample_app/tmp/**/*
+sample_app/db/*.sqlite3
+
Binary file not shown.
@@ -1,6 +1,7 @@
namespace :sample_app do
# Prevent visibility outside sample_app dir
- if %r(^#{Dir.getwd}) =~ __FILE__ and %r(/sample_app/$) =~ Dir.getwd
+ #if %r(^#{Dir.getwd}) =~ __FILE__ and %r(/sample_app/$) =~ Dir.getwd
+ if Dir.getwd =~ /sample_app/
desc "Create subscription management and require plugins' database tables"
task :setup => %w(dependencies tracker:create_tables subscription:create_tables)
@@ -40,7 +40,8 @@
t.column :created_at, :datetime
t.column :recorded_at, :datetime
end
- ActiveRecord::Base.connection.add_index :tracker_transactions, [ :recurring_payment_profile_id ]
+ ActiveRecord::Base.connection.add_index :tracker_transactions, [ :recurring_payment_profile_id ],
+ :name => 'ix_tracker_recurring_payment_profile_id'
end
desc 'Drop Tracker database tables'

0 comments on commit 1f031b5

Please sign in to comment.