Method: ActiveRecord::ConnectionAdapters::SchemaStatements#rename_table

Defined in:
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb

#rename_table(table_name, new_name) ⇒ Object

Renames a table.

rename_table('octopuses', 'octopi')

Raises:

  • (NotImplementedError)


524
525
526
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb', line 524

def rename_table(table_name, new_name, **)
  raise NotImplementedError, "rename_table is not implemented"
end