discourse/db/migrate/20130809211409_add_avatar_to_users.rb

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

10 lines
289 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AddAvatarToUsers < ActiveRecord::Migration[4.2]
2013-08-14 04:08:29 +08:00
def change
add_column :users, :use_uploaded_avatar, :boolean, default: false
add_column :users, :uploaded_avatar_template, :string
add_column :users, :uploaded_avatar_id, :integer
end
end