- 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
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
import * as path from 'path'; | |
import * as os from 'os'; | |
import * as fs from 'fs'; | |
import * as admin from 'firebase-admin'; | |
const exportToFile = async (req, _, next) => { | |
try { | |
const fileName = 'test002.csv'; | |
const tempFilePath = path.join(os.tmpdir(), fileName); |