discourse/db/migrate/20120503205521_add_site_id_...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
260 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AddSiteIdToUsers < ActiveRecord::Migration[4.2]
2013-02-05 14:16:51 -05:00
def change
add_column :users, :site_id, :integer
add_column :users, :bio, :text
add_index :users, :site_id
2013-02-25 11:42:20 -05:00
execute "UPDATE users SET site_id = 1"
2013-02-05 14:16:51 -05:00
end
end