1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Strengthen documantation on engine's migrations and seed data

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Piotr Sarnacki 2010-09-19 18:47:41 +02:00 committed by José Valim
parent d475de7e25
commit dfac9b1404

View file

@ -257,6 +257,21 @@ module Rails
# #
# This code will use my_engine.user_path(@user) to generate proper route. # This code will use my_engine.user_path(@user) to generate proper route.
# #
# == Migrations & seed data
#
# Engines can have their own migrations. Default path for migrations is exactly the same
# as in application: db/migrate
#
# To use engine's migrations in application you can use rake task, which copies them to
# application's dir:
#
# rake railties:copy_migrations
#
# If your engine has migrations, you may also want to prepare data for the database in
# seeds.rb file. You can load that data using load_seed method, e.g.
#
# MyEngine::Engine.load_seed
#
class Engine < Railtie class Engine < Railtie
autoload :Configurable, "rails/engine/configurable" autoload :Configurable, "rails/engine/configurable"
autoload :Configuration, "rails/engine/configuration" autoload :Configuration, "rails/engine/configuration"