mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
10 lines
228 B
Ruby
10 lines
228 B
Ruby
|
class AddSiteIdToUsers < ActiveRecord::Migration
|
||
|
def change
|
||
|
add_column :users, :site_id, :integer
|
||
|
add_column :users, :bio, :text
|
||
|
|
||
|
add_index :users, :site_id
|
||
|
execute "UPDATE users SET site_id = 1"
|
||
|
end
|
||
|
end
|