Skip to content

condef5/fakeflix-base

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fakeflix

This is the base project of Fakeflix.

Steps to run the app

bundle install
rails db:setup

Steps to recreate the app:

Generate new project

$ rails new fakeflix --database=postgresql --skip-test --api

Generate the model Movie

$ rails g model Movie title:string description:text rating:integer duration:integer price:integer

Generate the model Serie

$ rails g model Serie title:string description:text rating:integer price:integer

Generate the model Episode

$ rails g model Episode title:string description:text duration:integer serie:references

Generate the model Rental

$ rails g model Rental paid_price:integer rentable:references{polymorphic}:index

Create the database

$ rake db:create

Run the migrations

$ rake db:migrate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 99.5%
  • HTML 0.5%