RBOnRails-learning/db/migrate/20240807123956_add_status_to_comments.rb

6 lines
142 B
Ruby
Raw Normal View History

2024-08-07 14:43:33 +00:00
class AddStatusToComments < ActiveRecord::Migration[7.1]
def change
add_column :comments, :status, :string, default: "public"
end
end