Sha256: 314cbd3c3377fbf430a035c96569718267879f19917257fea010f7ce4b4ad7da

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

Contents

# rake db:seed:c80_social_networks_02_fill_links

C80SocialNetworks::Link.delete_all
C80SocialNetworks::Link.create!([
                                    {
                                        id: 1,
                                        ord: 10,
                                        title: 'Наша группа Вконтакте',
                                        url: 'http://vk.com'
                                    },
                                    {
                                        id: 2,
                                        ord: 20,
                                        title: 'Мы в инстаграм',
                                        url: 'http://instagram.com'
                                    },
                                    {
                                        id: 3,
                                        ord: 30,
                                        title: 'Facebook',
                                        url: 'http://facebook.com'
                                    },
                                ])

C80SocialNetworks::Link::HABTM_Types.delete_all
C80SocialNetworks::Link::HABTM_Types.create!([
                                                 { link_id: 1, type_id: 1 },
                                                 { link_id: 2, type_id: 4 },
                                                 { link_id: 3, type_id: 2 }
                                             ])

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
c80_social_networks-0.1.0.2 db/seeds/c80_social_networks_02_fill_links.rb
c80_social_networks-0.1.0.1 db/seeds/c80_social_networks_02_fill_links.rb