class Table
Ruby on Rails 3.2.22.5
Since v2.2.3Represents an SQL table in an abstract way for updating a table. Also see TableDefinition and SchemaStatements#create_table
Available transformations are:
change_table :table do |t| t.column t.index t.timestamps t.change t.change_default t.rename t.references t.belongs_to t.string t.text t.integer t.float t.decimal t.datetime t.timestamp t.time t.date t.binary t.boolean t.remove t.remove_references t.remove_belongs_to t.remove_index t.remove_timestamps end
Inherits from
Methods (defined here)
- # belongs_to
- # change
- # change_default
- # column
- # column_exists?
- # index
- # index_exists?
- # references
- # remove
- # remove_belongs_to
- # remove_index
- # remove_references
- # remove_timestamps
- # rename
- # timestamps
- self. new
Private methods
(1)
Implementation detail — not part of the public API.
- # native
Methods (inherited)
From Object (18)
- # acts_like?
- # blank?
- # create_fixtures
- # duplicable?
- # html_safe?
- # in?
- # instance_variable_names
- # options
- # presence
- # present?
- # test_homepage
- # to_json
- # to_param
- # to_query
- # try
- # unescape
- # with_options
- self. table_name_prefix