DB 基础知识

Published on:

如何从数据库中移除一栏?


栏位名称 column name: company_name: string
位于表单 table name: jobs

rails g migration RemoveColumnFromTable col1:type col2:type col3:type

rails g migration RemoveCompanyFromJobs company_name:string

rake db:migrate