class Table
Ruby on Rails 4.2.9
Represents 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.rename_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
Attributes
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
- # rename_index
- # timestamps
- self. new
Private methods (1)
Show private methods Implementation detail — not part of the public API.
- # native
Used by
Subclasses (1)
Methods (inherited)
From Object
(23)
- # <
- # acts_like?
- # blank?
- # create_fixtures
- # deep_dup
- # destroy
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # itself
- # perform
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # unescape
- # with_options
- self. table_name_prefix