RBOnRails-learning/db/migrate/20240807123935_add_status_to_articles.rb
2024-08-07 16:43:33 +02:00

6 lines
142 B
Ruby

class AddStatusToArticles < ActiveRecord::Migration[7.1]
def change
add_column :articles, :status, :string, default: "public"
end
end