Represents an SQL table in an abstract way for updating a table. Also see TableDefinition and {connection.create_table}[rdoc-ref:SchemaStatements#create_table]

Available transformations are:

change_table :table do |t|
  t.primary_key
  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.bigint
  t.float
  t.decimal
  t.numeric
  t.datetime
  t.timestamp
  t.time
  t.date
  t.binary
  t.boolean
  t.foreign_key
  t.json
  t.virtual
  t.remove
  t.remove_references
  t.remove_belongs_to
  t.remove_index
  t.remove_timestamps
end
Show files where this class is defined (1 file)
Register or log in to add new notes.