Created
February 11, 2016 18:41
-
-
Save johnhamelink/89cf27067e5b68fd7593 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| table_infos = for t <- :mnesia.system_info(:tables) do | |
| {t, :mnesia.table_info(t, :where_to_commit)} | |
| end | |
| for {tb, [{node_to_connect, type}]} <- table_infos do | |
| {tb, :mnesia.add_table_copy(tb, node(), type)} | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment