Module: Fiveruns::Tuneup::Schema

Included in:
Fiveruns::Tuneup
Defined in:
lib/fiveruns/tuneup/schema.rb

Instance Method Summary collapse

Instance Method Details

#add_schema_for(table, connection) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/fiveruns/tuneup/schema.rb', line 9

def add_schema_for(table, connection)
  schemas[table] ||= begin
    {
      :columns => columns_for(table, connection),
      :indexes => indexes_for(table, connection)
    }
  end
end

#schemasObject



5
6
7
# File 'lib/fiveruns/tuneup/schema.rb', line 5

def schemas
  @schemas ||= {}
end