You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
369 B
Ruby
11 lines
369 B
Ruby
class ChangeUsersDefaultAsciicastPrivacyPolicy < ActiveRecord::Migration
|
|
def up
|
|
change_column :users, :asciicasts_private_by_default, :boolean, default: true, null: false
|
|
execute "UPDATE users SET asciicasts_private_by_default = TRUE"
|
|
end
|
|
|
|
def down
|
|
change_column :users, :asciicasts_private_by_default, :boolean, default: false, null: false
|
|
end
|
|
end
|