Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v7.0.0) is shown here.
create_table()
public
Creates an internal metadata table with columns key and
value
# File activerecord/lib/active_record/internal_metadata.rb, line 41
def create_table
return unless enabled?
unless connection.table_exists?(table_name)
connection.create_table(table_name, id: false) do |t|
t.string :key, **connection.internal_string_options_for_primary_key
t.string :value
t.timestamps
end
end
end