discourse/db/migrate/20120503205521_add_site_id_to_users.rb

10 lines
229 B
Ruby
Raw Normal View History

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