This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react'; | |
| import './App.css'; | |
| import SelectBrand from './components/SelectBrand' | |
| import SelectModel from './components/SelectModel' | |
| class App extends Component { | |
| state = {} | |
| render() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react'; | |
| import './App.css'; | |
| import BrandsApi from './api/brand' | |
| import ModelsApi from './api/model' | |
| class App extends Component { | |
| state = { | |
| brands: [], | |
| models: [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :db do | |
| FOLDER = "tmp/dumps" | |
| def credentials | |
| password = (ENV['DEV_DB_PASSWORD'] != "") ? "-p#{ENV['DEV_DB_PASSWORD']}" : "" | |
| "-u #{ENV['DEV_DB_USER']} #{password}" | |
| end | |
| def database_name | |
| "#{ENV['DEV_DB_NAME']}_development" |