Sha256: c406cab5330d83288ed2491b8cb2c5de5f9e108b8a6d688bc914582a5b1d3bce

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

class MysqlUser < ActiveRecord::Base  
  set_table_name 'user'
  set_primary_key 'User'
  
  has_many :table_privileges, :class_name => 'MysqlTablePrivilege', :foreign_key => 'User'
  has_many :column_privileges, :class_name => 'MysqlColumnPrivilege', :foreign_key => 'User'
  belongs_to :host, :class_name => 'MysqlHost', :foreign_key => 'Host'
  
  def after_initialize
    max_connections if @attributes.has_key?("max_user_connections")
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
methodmissing-scrooge-3.0.0 test/models/mysql_user.rb