tracks/db/migrate/20200109231555_change_todo_description.rb

13 lines
246 B
Ruby
Raw Normal View History

class ChangeTodoDescription < ActiveRecord::Migration[5.2]
def up
change_table :todos do |t|
t.change :description, :text
end
end
def down
change_table :todos do |t|
t.change :description, :string
end
end
end