サクサク読めて、アプリ限定の機能も多数!
class DropUsers < ActiveRecord::Migration def change drop_table :users do |t| t.string :email, null: false t.timestamps null: false end end end
youko03 のブックマーク 2020/12/11 17:27
Rails DB Migration - How To Drop a Table?class DropUsers < ActiveRecord::Migration def change drop_table :users do |t| t.string :email, null: false t.timestamps null: false end end end2020/12/11 17:27
class DropUsers < ActiveRecord::Migration def change drop_table :users do |t| t.string :email, null: false t.timestamps null: false end end end
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2011/12/16
I added a table that I thought I was going to need, but now no longer plan on using it. How should I remove that table? I've already run migrations, so the table is in my database. I figure rails g...
7 人がブックマーク・3 件のコメント
\ コメントが サクサク読める アプリです /
class DropUsers < ActiveRecord::Migration def change drop_table :users do |t| t.string :email, null: false t.timestamps null: false end end end
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Rails DB Migration - How To Drop a Table?
I added a table that I thought I was going to need, but now no longer plan on using it. How should I remove that table? I've already run migrations, so the table is in my database. I figure rails g...
7 人がブックマーク・3 件のコメント
\ コメントが サクサク読める アプリです /