discourse/db/migrate/20121205162143_add_approved_to_users.rb

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

10 lines
303 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AddApprovedToUsers < ActiveRecord::Migration[4.2]
2013-02-06 03:16:51 +08:00
def change
add_column :users, :approved, :boolean, null: false, default: false
add_column :users, :approved_by_id, :integer, null: true
add_column :users, :approved_at, :timestamp, null: true
end
end