- There is an unknown column in the file
- There is a missing required column in the file
- There is missing data in the file
- The file is not a properly formatted csv file
// When you set a function parameter to `(arg = val)` that sets the default | |
// for the argument. It is not a forced assignment. | |
// | |
// Example: | |
function postSomething(name = 'Megan') { | |
console.log('name:', name); | |
} | |
postSomething(); // console logs 'name: Megan' |
const { useState } = React; | |
function signupUser() { | |
return new Promise(resolve => { | |
setTimeout(resolve, 1000); | |
}); | |
} | |
const initialState = { | |
username: "", |
rails new myapp --database=postgresql
import Vue from 'vue' | |
import Vuex from 'vuex' | |
import firebase from 'firebase' | |
import router from '@/router' | |
Vue.use(Vuex) | |
export const store = new Vuex.Store({ | |
state: { | |
appTitle: 'My Awesome App', |
import Vue from 'vue' | |
import Vuex from 'vuex' | |
import firebase from 'firebase' | |
import router from '@/router' | |
Vue.use(Vuex) | |
export const store = new Vuex.Store({ | |
state: { | |
appTitle: 'My Awesome App', |
heroku restart
heroku pg:reset DATABASE
(no need to change the DATABASE
)heroku run rake db:migrate
heroku run rake db:seed
(if you have seed)One liner
heroku restart; heroku pg:reset DATABASE --confirm APP-NAME; heroku run rake db:migrate