Sha256: 862fa1eff06d243d9118c9504e50c63ad531b36b5fdf8c04780a043bf3787f79

Contents?: true

Size: 510 Bytes

Versions: 8

Compression:

Stored size: 510 Bytes

Contents

ActiveRecord::ConnectionAdapters::SchemaStatements.module_eval do
  def initialize_schema_migrations_table_with_plugins
    initialize_schema_migrations_table_without_plugins

    begin
      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
end

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
ikhono-desert-0.3.2 lib/desert/plugin_migrations/extensions/2.1/schema_statements.rb
ikhono-ikhono-desert-0.3.2 lib/desert/plugin_migrations/extensions/2.1/schema_statements.rb
tog-desert-0.3.4 lib/desert/plugin_migrations/extensions/2.1/schema_statements.rb
tog-desert-0.3.5.1 lib/desert/plugin_migrations/extensions/2.1/schema_statements.rb
tog-desert-0.3.5 lib/desert/plugin_migrations/extensions/2.1/schema_statements.rb
desert-0.3.0 lib/desert/plugin_migrations/extensions/2.1/schema_statements.rb
desert-0.2.2 lib/desert/plugin_migrations/extensions/2.1/schema_statements.rb
desert-0.3.2 lib/desert/plugin_migrations/extensions/2.1/schema_statements.rb