Sha256: c88fcb9d6ebb11e7bad7f70c754ed023cdbd2f8fd6eae8dc10dba599273a1fc3
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
ActiveRecord::ConnectionAdapters::SchemaStatements.module_eval do def initialize_schema_migrations_table_with_plugins initialize_schema_migrations_table_without_plugins create_table :plugin_schema_info, :id=>false do |t| t.string :plugin_name t.integer :version end unless tables.include? "plugin_schema_info" # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aaalex-desert-0.3.5.3 | lib/desert/plugin_migrations/extensions/2.1/schema_statements.rb |