instance method
rename_table
Ruby on Rails 7.2.3
Since v2.2.3Signature
rename_table(table_name, new_name, **)
Renames a table.
rename_table('octopuses', 'octopi')
Parameters
-
table_namereq -
new_namereq -
kwargskeyrest
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 518
def rename_table(table_name, new_name, **)
raise NotImplementedError, "rename_table is not implemented"
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb line 518
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::SchemaStatements