discourse/db/migrate/20120503205521_add_site_id_...

10 lines
228 B
Ruby
Raw Normal View History

2013-02-05 14:16:51 -05:00
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