class RailsDbViews::Function
Public Instance Methods
create_sql()
click to toggle source
# File lib/rails_db_views/function.rb, line 2 def create_sql puts "CREATE OR REPLACE FUNCTION #{name}..." "CREATE OR REPLACE FUNCTION #{name} #{uncommented_sql_content}" end
drop_sql()
click to toggle source
# File lib/rails_db_views/function.rb, line 7 def drop_sql puts "DROP FUNCTION #{name}..." "DROP FUNCTION #{name}" end
handle_error_on_drop()
click to toggle source
# File lib/rails_db_views/function.rb, line 12 def handle_error_on_drop puts "WARNING: DROP FUNCTION #{name}... ERROR" end