ectomobile/db/migrate/20220611152100_add_created_by_to_users.rb

8 lines
163 B
Ruby
Raw Permalink Normal View History

2022-06-11 16:11:50 +00:00
# frozen_string_literal: true
class AddCreatedByToUsers < ActiveRecord::Migration[6.1]
def change
add_belongs_to :users, :created_by, index: true
end
end