about summary refs log tree commit diff
path: root/db/migrate/20190714172721_adults_only_to_adult_content.rb
blob: c42e6fb35f1a3cdf56ec895c311d111c7d3a8163 (plain) (blame)
1
2
3
4
5
6
7
8
class AdultsOnlyToAdultContent < ActiveRecord::Migration[5.2]
  def up
    safety_assured { rename_column :accounts, :adults_only, :adult_content }
  end
  def down
    safety_assured { rename_column :accounts, :adult_content, :adults_only }
  end
end