1 class RenameCreatedByToOwner < ActiveRecord::Migration
3 %w{api_clients collections logs metadata nodes pipelines pipeline_invocations projects specimens users}
8 remove_column t.to_sym, :created_by_client
9 rename_column t.to_sym, :created_by_user, :owner
14 tables.reverse.each do |t|
15 rename_column t.to_sym, :owner, :created_by_user
16 add_column t.to_sym, :created_by_client, :string