Hello,
I try to write simple ejabberd module with own mnesia table.
I have some questions:
1) Need i create schema for my table:
Node = node(),
mnesia:create_schema([Node])
or not?
2) when i try to create new table:
mnesia:create_table(tab,
[
{ram_copies, Node},
{type, set},
{attributes, record_info(fields, tab)}
]).
What Node i must use?
Thank you
See mod_last.erl as example
See mod_last.erl as example of how you can create a mnesia table.