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.

These similar methods exist in v7.1.3.2:

define(info = {}, &block) public

Eval the given block. All methods available to the current connection adapter are available within the block, so you can easily use the database definition DSL to build up your schema ( {create_table}[rdoc-ref:ConnectionAdapters::SchemaStatements#create_table], {add_index}[rdoc-ref:ConnectionAdapters::SchemaStatements#add_index], etc.).

The info hash is optional, and if given is used to define metadata about the current schema (currently, only the schema’s version):

ActiveRecord::Schema.define(version: 2038_01_19_000001) do
  ...
end
Show source
Register or log in to add new notes.