Permalink
Browse files

Use rake task to generate migration

  • Loading branch information...
1 parent 07b1929 commit 7999f2a288d4c8afd973465162bf44720f9a9ac8 @atd atd committed Jun 15, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/generators/social_stream/base/install_generator.rb
@@ -41,9 +41,8 @@ def create_application_layout
end
def create_migration_file
- copy_file File.join(File.dirname(__FILE__),
- '..', '..', '..', '..',
- 'db/migrate/20110610112023_create_social_stream.rb'),
- 'db/migrate/20110610112023_create_social_stream.rb'
+ require 'rake'
+ Rails.application.load_tasks
+ Rake::Task['social_stream_base_engine:install:migrations'].invoke
end
end

0 comments on commit 7999f2a

Please sign in to comment.