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-2.5.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.4.2 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.4.1 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.4.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.3.1 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.3.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.2.4 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.2.3 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.2.2 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.2.1 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.2.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.1.2 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.1.1 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.1.0 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.0.8 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.0.7 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.0.6 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.0.5 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.0.4 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
rubber-2.0.3 templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb