Sha256: 381a0b524cad37d090f25f283e94b427af7b64d3086f12039739fa37e83122fe
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
#-- # WebROaR - Ruby Application Server - http://webroar.in/ # Copyright (C) 2009 Goonj LLC # # This file is part of WebROaR. # # WebROaR is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # WebROaR 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with WebROaR. If not, see <http://www.gnu.org/licenses/>. #++ class RenameAppExceptions < ActiveRecord::Migration def self.up drop_table :app_exceptions if ActiveRecord::Base.connection.tables.include?("app_exceptions") and !AppException.exists? rename_table :app_exceptions, :tmp_exceptions if ActiveRecord::Base.connection.tables.include?("app_exceptions") end def self.down end end
Version data entries
3 entries across 3 versions & 1 rubygems