Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: ActiveResource::Schema

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

These similar methods exist in v4.2.1:

new() public

The internals of an Active Resource Schema are very simple - unlike an Active Record TableDefinition (on which it is based). It provides a set of convenience methods for people to define their schema using the syntax:

schema do
  string :foo
  integer :bar

The schema stores the name and type of each attribute. That is then
read out by the schema method to populate the schema of the actual
Show source
Register or log in to add new notes.