Skip to content

Instantly share code, notes, and snippets.

@abhijith
Created March 18, 2010 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhijith/336270 to your computer and use it in GitHub Desktop.
Save abhijith/336270 to your computer and use it in GitHub Desktop.
-module(migrate).
-compile(export_all).
-include("v.hrl").
gah() ->
Transformer = fun({v, Name, Parent}) ->
#vm{name = Name, parent = Parent, group = undefined}
end,
mnesia:transform_table(v, Transformer, [name, parent, group]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment