lib/desert/plugin_migrations/extensions/2.1/schema_statements.rb in desert-0.2.1 vs lib/desert/plugin_migrations/extensions/2.1/schema_statements.rb in desert-0.2.2
- old
+ new
@@ -1,10 +1,10 @@
ActiveRecord::ConnectionAdapters::SchemaStatements.module_eval do
def initialize_schema_migrations_table_with_plugins
initialize_schema_migrations_table_without_plugins
begin
- execute "CREATE TABLE #{PluginAWeek::PluginMigrations::Migrator.schema_info_table_name} (plugin_name #{type_to_sql(:string)}, version #{type_to_sql(:integer)})"
+ execute "CREATE TABLE #{Desert::PluginMigrations::Migrator.schema_info_table_name} (plugin_name #{type_to_sql(:string)}, version #{type_to_sql(:integer)})"
rescue ActiveRecord::StatementInvalid
# Schema has been initialized
end
end
alias_method_chain :initialize_schema_migrations_table, :plugins
\ No newline at end of file