mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 09:43:46 +08:00
10 lines
229 B
Ruby
10 lines
229 B
Ruby
class AddSiteIdToUsers < ActiveRecord::Migration[4.2]
|
|
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
|