mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
13 lines
246 B
Ruby
13 lines
246 B
Ruby
|
|
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
|