Unable to delete the table created.

You have def down inside def up. It needs to be between the last two
end statements.

Colin