前提・実現したいこと
railsの初歩的な質問です。
テーブルを削除したのですが、以下を試してみてもschema.rbから該当のコードが消えません。
rails初心者のため、お力添え頂けると有難いです。
該当のソースコード
schema
create_table "blog_comments", force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
試したこと
rails generate migration blog_comments
class DeleteBlog_Comments < ActiveRecord::Migration[5.1]
def change
drop_table :blog_comments
end
end
rake db:migrate
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。