instance method rename_index

Ruby on Rails 3.2.22.5

Since v3.1.12 Last seen in v3.2.22.5

Available in: v3.1.12 v3.2.22.5

Signature

rename_index(table_name, old_name, new_name)

No documentation comment.

Parameters

table_name req
old_name req
new_name req
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 1060
      def rename_index(table_name, old_name, new_name)
        execute "ALTER INDEX #{quote_column_name(old_name)} RENAME TO #{quote_table_name(new_name)}"
      end

Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 1060 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

Type at least 2 characters to search.

↑↓ navigate · open · esc close