adds ar migrations and join tables