Closed jendiamond closed 8 years ago
$ rails g migration remove_columns_from_questions
rails g migration remove_columns_from_questions
class RemoveColumnsFromQuestions < ActiveRecord::Migration[5.0] def change end end
class RemoveColumnsFromQuestions < ActiveRecord::Migration[5.0] def change remove_column :questions, :boolean_question remove_column :questions, :string_question remove_column :questions, :text_question remove_column :questions, :integer_question end end
Run this:
$
rails g migration remove_columns_from_questions
It will create this:
Change it to this: