mirror of https://github.com/mastodon/mastodon
Merge branch 'feature/toot-app-source' of https://github.com/ineffyble/mastodon into ineffyble-feature/toot-app-source
commit
ab165547fd
@ -0,0 +1,8 @@
|
||||
module ApplicationExtension
|
||||
extend ActiveSupport::Concern
|
||||
included do
|
||||
validates :website
|
||||
end
|
||||
end
|
||||
|
||||
Doorkeeper::Application.send :include, ApplicationExtension
|
@ -0,0 +1,3 @@
|
||||
object @application
|
||||
|
||||
attributes :id, :name, :website
|
@ -0,0 +1,5 @@
|
||||
class AddApplicationToStatuses < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :statuses, :application_id, :int
|
||||
end
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
class AddWebsiteToOauthApplication < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :oauth_applications, :website, :string
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue