Sequel.migration do change do alter_table(:sprites_versions) do drop_column :sprite_id add_foreign_key(:sprite_id, :sprites) end end end