creating model instead of migration forlinks
new migration for links using rails model with references