drop authorization_codes
not used anymore refs #CNVS-27773 Change-Id: I19c27754f67bc8a11c0c0cd628c5b427197779a1 Reviewed-on: https://gerrit.instructure.com/73799 Tested-by: Jenkins Reviewed-by: Jeremy Stanley <jeremy@instructure.com> Product-Review: James Williams <jamesw@instructure.com> QA-Review: James Williams <jamesw@instructure.com>
This commit is contained in:
parent
f0c1b8ca8b
commit
347c699d40
|
@ -1,22 +0,0 @@
|
||||||
#
|
|
||||||
# Copyright (C) 2011 Instructure, Inc.
|
|
||||||
#
|
|
||||||
# This file is part of Canvas.
|
|
||||||
#
|
|
||||||
# Canvas is free software: you can redistribute it and/or modify it under
|
|
||||||
# the terms of the GNU Affero General Public License as published by the Free
|
|
||||||
# Software Foundation, version 3 of the License.
|
|
||||||
#
|
|
||||||
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
||||||
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU Affero General Public License along
|
|
||||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
|
|
||||||
class AuthorizationCode < ActiveRecord::Base
|
|
||||||
belongs_to :account
|
|
||||||
attr_accessible
|
|
||||||
end
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
class DropAuthorizationCodes < ActiveRecord::Migration
|
||||||
|
tag :postdeploy
|
||||||
|
|
||||||
|
def up
|
||||||
|
drop_table :authorization_codes
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
create_table "authorization_codes", :force => true do |t|
|
||||||
|
t.string "authorization_code"
|
||||||
|
t.string "authorization_service"
|
||||||
|
t.integer "account_id", :limit => 8
|
||||||
|
t.datetime "created_at"
|
||||||
|
t.datetime "updated_at"
|
||||||
|
t.integer "associated_account_id", :limit => 8
|
||||||
|
end
|
||||||
|
|
||||||
|
add_index "authorization_codes", ["account_id"], :name => "index_authorization_codes_on_account_id"
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue