Sha256: 4ebd738c23516dc2783c278bb49a99ae4613771f6126789a718ba91fe44ca3ab

Contents?: true

Size: 420 Bytes

Versions: 75

Compression:

Stored size: 420 Bytes

Contents

<%
  @path = "#{Rubber.root}/config/initializers/mysql_cluster_migrations.rb"
%>

# mysql adapter in rails hardcodes engine to be innodb, so if we want all
# rails tables to be clustered, we need to override this behavior
#
class ActiveRecord::ConnectionAdapters::MysqlAdapter
  def create_table(table_name, options = {}) #:nodoc:
    super(table_name, options.reverse_merge(:options => "ENGINE=ndbcluster"))
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
rubber-3.2.2 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-3.2.1 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-3.2.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-3.1.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-3.0.1 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-3.0.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.16.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.15.2 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.15.1 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.15.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.14.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.13.1 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.13.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.12.2 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.12.1 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.12.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.11.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.10.2 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.10.1 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.10.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb