discourse/db/migrate/20120503205521_add_site_id_to_users.rb

10 lines
224 B
Ruby
Raw Normal View History

2013-02-06 03:16:51 +08:00
class AddSiteIdToUsers < ActiveRecord::Migration
def change
add_column :users, :site_id, :integer
add_column :users, :bio, :text
add_index :users, :site_id
2013-02-26 00:42:20 +08:00
execute "UPDATE users SET site_id = 1"
2013-02-06 03:16:51 +08:00
end
end