mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:29:52 +01:00
15 lines
448 B
Ruby
15 lines
448 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddSharingFieldsToUser < ActiveRecord::Migration[6.1]
|
|
def up
|
|
add_column :users, :sharing_enabled, :boolean, default: false
|
|
add_column :users, :sharing_autoclose, :boolean, default: false
|
|
add_column :users, :sharing_custom_url, :string
|
|
end
|
|
|
|
def down
|
|
remove_column :users, :sharing_enabled
|
|
remove_column :users, :sharing_autoclose
|
|
remove_column :users, :sharing_custom_url
|
|
end
|
|
end
|