Move SQL function definition from dosage.rb to a better place
ActiveRecord::Base.connection.execute "
CREATE OR REPLACE FUNCTION is_time_interval(...
...
END;
$$ LANGUAGE plpgsql;
"
I believe it could be in a migration.
ActiveRecord::Base.connection.execute "
CREATE OR REPLACE FUNCTION is_time_interval(...
...
END;
$$ LANGUAGE plpgsql;
"
I believe it could be in a migration.