ectomobile/db/migrate/20220611152100_add_created_by_to_users.rb
2022-06-11 13:12:00 -03:00

8 lines
163 B
Ruby

# frozen_string_literal: true
class AddCreatedByToUsers < ActiveRecord::Migration[6.1]
def change
add_belongs_to :users, :created_by, index: true
end
end