https://github.com/condef5/devise-providers
https://github.com/condef5/devise-providers
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/condef5/devise-providers
- Owner: condef5
- Created: 2019-04-17T14:35:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T15:44:17.000Z (about 7 years ago)
- Last Synced: 2025-08-04T12:34:21.874Z (10 months ago)
- Language: Ruby
- Size: 86.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fakeflix Admin
This is the base project of Fakeflix Admin.
## Steps to run the app
```bash
bundle install
rails db:setup
```
## Steps to recreate the app:
**Generate new project**
```bash
$ rails new fakeflix-admin --database=postgresql --skip-test
```
**Generate the model Movie**
```bash
$ rails g model Movie title:string description:text rating:integer duration:integer price:integer status:string progress:integer
```
**Generate the model Serie**
```bash
$ rails g model Serie title:string description:text rating:integer price:integer status:string
```
**Generate the model Episode**
```bash
$ rails g model Episode title:string description:text duration:integer serie:references progress:integer
```
**Generate the model Rental**
```bash
$ rails g model Rental paid_price:integer rentable:references{polymorphic}:index
```
**Create the database**
```bash
$ rake db:create
```
**Run the migrations**
```bash
$ rake db:migrate
```