Sha256: 206268cf05dde05646c4f9c58c87ecee497d148b394cba6bb46c8eb243392f31

Contents?: true

Size: 309 Bytes

Versions: 35

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

class AddOwnerToApplication < ActiveRecord::Migration[4.2]
  def change
    add_column :oauth_applications, :owner_id, :integer, null: true
    add_column :oauth_applications, :owner_type, :string, null: true
    add_index :oauth_applications, %i[owner_id owner_type]
  end
end

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
doorkeeper-mongodb-5.4.0 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-mongodb-5.3.0 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-mongodb-5.2.3 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-sequel-2.4.0 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-5.1.2 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-mongodb-5.2.2 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-sequel-2.3.0 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-5.2.6 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-5.3.3 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-5.0.3 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-5.1.1 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-5.2.5 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-5.3.2 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-5.4.0.rc1 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-mongodb-5.2.1 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-mongodb-5.2.0 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-sequel-2.2.0 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-5.2.4 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-5.3.1 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
doorkeeper-5.3.0 spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb