Change database column type

#694
This commit is contained in:
Artur Beljajev 2018-02-18 02:46:20 +02:00
parent 46bca46320
commit e84a1dc0de
2 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,5 @@
class ChangeMessagesAttachedObjIdTypeToInt < ActiveRecord::Migration
def change
change_column :messages, :attached_obj_id, 'integer USING attached_obj_id::integer'
end
end