Method: Sequel::Database#set_column_type
- Defined in:
- lib/sequel/database/schema_methods.rb
#set_column_type(table, *args) ⇒ Object
Set the data type for the given column in the given table:
DB.set_column_type :items, :price, :float
See alter_table.
160 161 162 |
# File 'lib/sequel/database/schema_methods.rb', line 160 def set_column_type(table, *args) alter_table(table) {set_column_type(*args)} end |