mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-08-31 19:07:41 +09:00
df76a227dc
First open source release of Campfire 🎉
10 lines
264 B
Ruby
10 lines
264 B
Ruby
class AlterUsersAddBotToken < ActiveRecord::Migration[7.2]
|
|
def change
|
|
add_column :users, :bot_token, :string
|
|
add_index :users, :bot_token, unique: true
|
|
|
|
# Bot users do not use passwords
|
|
change_column_null :users, :password_digest, true
|
|
end
|
|
end
|