Giter Club home page Giter Club logo

activerecord-tvland-ruby-007-public's Introduction

languages tags
ruby
ORM, ActiveRecord, associations

TV Land ActiveRecord Associations Lab

This lab is focused on something none of us have time to watch anymore: TV. To keep track of what's out there, we'll build a small database using ActiveRecord as our ORM.

The key things to think about here are relationships between concepts. If we think in regular English about the concept of a network, we'd say that a Network has many shows, and that each show has many characters. We want to model our database the same way.

Instructions

Fork and clone this repository, and get your rspec tests to pass.

You have rake tasks available to you: rake db:migrate and rake db:reset. Don't forget to migrate your database!

The rspec tests are complete and should not need to change. You'll be building migrations and filling in classes to get the tests to pass as described.

Look at spec/network_spec, app/models/network.rb, and db/migrate files to guide you. The network part of this lab is complete, the tests pass, and the migrations are done. Use all of this as a reference as you build out Show and Character.

You'll need to implement the code to pass the network, show, and character specs, and then you'll need to use that knowledge to finish the spec for actors and implement the actor model.

Some of the specs have TODOs to help guide you. Some do not. You'll need to use what you know about ruby, objects, and ORMs to get them to pass.

activerecord-tvland-ruby-007-public's People

Contributors

ahimmelstoss avatar changamanda avatar scottcreynolds avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.