diff options
author | Rich Sturim <rich@sturim.org> | 2009-01-21 23:39:33 -0500 |
---|---|---|
committer | Rich Sturim <rich@sturim.org> | 2009-01-21 23:39:33 -0500 |
commit | 74fd2d34f2aeb45063545fcfff9675e2dd866b5c (patch) | |
tree | 475f10ed0c662e0f6126828efc7b3ec14895eddd /railties/doc/guides/source/creating_plugins/migrations.txt | |
parent | f08a78a057782577d5efbc82662d7898e26dcb8c (diff) | |
download | rails-74fd2d34f2aeb45063545fcfff9675e2dd866b5c.tar.gz rails-74fd2d34f2aeb45063545fcfff9675e2dd866b5c.tar.bz2 rails-74fd2d34f2aeb45063545fcfff9675e2dd866b5c.zip |
fixed a few filenames and paths
Diffstat (limited to 'railties/doc/guides/source/creating_plugins/migrations.txt')
-rw-r--r-- | railties/doc/guides/source/creating_plugins/migrations.txt | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/railties/doc/guides/source/creating_plugins/migrations.txt b/railties/doc/guides/source/creating_plugins/migrations.txt index e7d2e09069..2589169b38 100644 --- a/railties/doc/guides/source/creating_plugins/migrations.txt +++ b/railties/doc/guides/source/creating_plugins/migrations.txt @@ -28,26 +28,7 @@ Here are a few possibilities for how to allow developers to use your plugin migr === Create a custom rake task === -*vendor/plugins/yaffle/lib/db/migrate/20081116181115_create_birdhouses.rb:* - -[source, ruby] ----------------------------------------------- -class CreateBirdhouses < ActiveRecord::Migration - def self.up - create_table :birdhouses, :force => true do |t| - t.string :name - t.timestamps - end - end - - def self.down - drop_table :birdhouses - end -end ----------------------------------------------- - - -*vendor/plugins/yaffle/tasks/yaffle.rake:* +*vendor/plugins/yaffle/tasks/yaffle_tasks.rake:* [source, ruby] ---------------------------------------------- @@ -153,7 +134,7 @@ NOTE: the migration generator checks to see if a migation already exists, and it After running the test with 'rake' you can make it pass with: -*vendor/plugins/yaffle/generators/yaffle/yaffle_generator.rb* +*vendor/plugins/yaffle/generators/yaffle_migration/yaffle_migration_generator.rb* [source, ruby] ------------------------------------------------------------------ |