Flowdock
indexes(table_name, name = nil) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb, line 191
      def indexes(table_name, name = nil) #:nodoc:
        execute("PRAGMA index_list(#{quote_table_name(table_name)})", name).map do |row|
          IndexDefinition.new(
            table_name,
            row['name'],
            row['unique'].to_i != 0,
            execute("PRAGMA index_info('#{row['name']}')").map { |col|
              col['name']
            })
        end
      end
Register or log in to add new notes.