Class: CASServer::Models::ChangeServiceToText
- Inherits:
-
V
- Object
- V
- CASServer::Models::ChangeServiceToText
- Defined in:
- lib/casserver/models.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
239 240 241 |
# File 'lib/casserver/models.rb', line 239 def self.down change_column :casserver_st, :service, :string end |
.up ⇒ Object
230 231 232 233 234 235 236 237 |
# File 'lib/casserver/models.rb', line 230 def self.up # using change_column to change the column type from :string to :text # doesn't seem to work, at least under MySQL, so we drop and re-create # the column instead remove_column :casserver_st, :service say "WARNING: All existing service tickets are being deleted." add_column :casserver_st, :service, :text end |