public
Fork of lazyatom/engines
Description: The Rails Engines plugin
Homepage: http://rails-engines.org
Clone URL: git://github.com/courtenay/engines.git
Fixed patching of initialize_schema_migrations_table (was: 
initialize_schema_information) by plugin migrations

git-svn-id: http://svn.rails-engines.org/engines/trunk@679 
61cc408d-6c04-0410-aff7-b3608aa29ce9
lazyatom (author)
Sun Apr 13 05:03:56 -0700 2008
commit  58f412a960028854becd9630e82d01df4c5cc57a
tree    de511b42004314687d947733f3fd4137005e10ef
parent  a690fd5a91fa20093ac59a51ff872bff274227f5
...
27
28
29
30
 
31
32
 
33
34
35
...
27
28
29
 
30
31
 
32
33
34
35
0
@@ -27,9 +27,9 @@ class PluginMigrationGenerator < Rails::Generator::Base
0
   protected
0
   
0
     # Create the plugin schema table if it doesn't already exist. See
0
- # Engines::RailsExtensions::Migrations#initialize_schema_information_with_engine_additions
0
+ # Engines::RailsExtensions::Migrations#initialize_schema_migrations_table_with_engine_additions
0
     def ensure_plugin_schema_table_exists
0
- ActiveRecord::Base.connection.initialize_schema_information
0
+ ActiveRecord::Base.connection.initialize_schema_migrations_table
0
     end
0
 
0
     # Determine all the plugins which have migrations that aren't present
...
123
124
125
126
 
127
128
129
130
131
 
132
133
134
135
136
137
138
 
 
139
140
141
...
123
124
125
 
126
127
128
129
130
 
131
132
133
134
135
136
 
 
137
138
139
140
141
0
@@ -123,19 +123,19 @@ require "engines/plugin/migrator"
0
 # The Engines::RailsExtensions::Migrations module defines extensions for Rails'
0
 # migration systems. Specifically:
0
 #
0
-# * Adding a hook to initialize_schema_information to create the plugin schema
0
+# * Adding a hook to initialize_schema_migrations_table to create the plugin schema
0
 # info table.
0
 #
0
 module Engines::RailsExtensions::Migrations
0
   def self.included(base) # :nodoc:
0
- base.class_eval { alias_method_chain :initialize_schema_information, :engine_additions }
0
+ base.class_eval { alias_method_chain :initialize_schema_migrations_table, :engine_additions }
0
   end
0
 
0
   # Create the schema tables, and ensure that the plugin schema table
0
   # is also initialized. The plugin schema info table is defined by
0
   # Engines::Plugin::Migrator.schema_info_table_name.
0
- def initialize_schema_information_with_engine_additions
0
- initialize_schema_information_without_engine_additions
0
+ def initialize_schema_migrations_table_with_engine_additions
0
+ initialize_schema_migrations_table_without_engine_additions
0
 
0
     # create the plugin schema stuff.
0
     begin

Comments

    No one has commented yet.